Typing Oauth2Guild

Does anyone know if discord-api-types has a builtin type for an Oauth2Guild (i.e. a guild fetched via the oauth2 api/v10/users/@me/guilds route) or would it just be
import type { APIPartialGuild } from 'discord-api-types/v10';
export interface Oauth2Guild extends APIPartialGuild {
permissions: string;
}
import type { APIPartialGuild } from 'discord-api-types/v10';
export interface Oauth2Guild extends APIPartialGuild {
permissions: string;
}
5 Replies
d.js toolkit
d.js toolkit12mo ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
piemot
piemot12mo ago
(discord-api-types 0.37.47)
piemot
piemot12mo ago
that looks right 💜 thx!
d4
d412mo ago
np