© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
<Client>.guilds.fech returns a collection of OAuth2Guild instead of the guild itself - discord.js - Imagine an app
d-Iaa
discord.js - Imagine an app
•
6mo ago
•
12 replies
JustEvil
<Client>.guilds.fech returns a collection of OAuth2Guild instead of the guild itself
For some reason
, using
<Client
>
.guilds
.fetch
(
<guildId
>
) returns a Collection of OAuth2Guild instead of the guild itself
.
The type says
Guild
Guild
but the return is something else
.
discord.js - Imagine an app
Join
Support server for discord.js, a Node.js module to interact with Discord's apps API.
57,693
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
<GuildManager>#fetch Returning OAuth2Guild instead of Guild object
d-Iaa
discord.js - Imagine an app / djs-questions
2y ago
const client = new Client({ intents: [ Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD
d-Iaa
discord.js - Imagine an app / djs-questions
2y ago
Typing Oauth2Guild
d-Iaa
discord.js - Imagine an app / djs-questions
3y ago