Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
<Client>.guilds.fech returns a collection of OAuth2Guild instead of the guild itself - discord.js - Imagine ❄
d-I❄
discord.js - Imagine ❄
•
5mo 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 ❄
Join
Support server for discord.js, a Node.js module to interact with Discord's apps API.
57,915
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
<GuildManager>#fetch Returning OAuth2Guild instead of Guild object
d-I❄
discord.js - Imagine ❄ / djs-questions
17mo ago
const client = new Client({ intents: [ Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD
d-I❄
discord.js - Imagine ❄ / djs-questions
2y ago
Typing Oauth2Guild
d-I❄
discord.js - Imagine ❄ / djs-questions
3y ago