mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 11:03:30 +01:00
feat(Client): add InviteGenerationOptions#additionalScopes (#5215)
Co-authored-by: izexi <43889168+izexi@users.noreply.github.com> Co-authored-by: Antonio Román <kyradiscord@gmail.com>
This commit is contained in:
15
typings/index.d.ts
vendored
15
typings/index.d.ts
vendored
@@ -513,6 +513,7 @@ declare module 'discord.js' {
|
||||
SMALL: 1;
|
||||
BIG: 2;
|
||||
};
|
||||
InviteScopes: InviteScope[];
|
||||
MessageTypes: MessageType[];
|
||||
SystemMessageTypes: SystemMessageType[];
|
||||
ActivityTypes: ActivityType[];
|
||||
@@ -2824,6 +2825,7 @@ declare module 'discord.js' {
|
||||
permissions?: PermissionResolvable;
|
||||
guild?: GuildResolvable;
|
||||
disableGuildSelect?: boolean;
|
||||
additionalScopes?: InviteScope[];
|
||||
}
|
||||
|
||||
interface InviteOptions {
|
||||
@@ -2836,6 +2838,19 @@ declare module 'discord.js' {
|
||||
|
||||
type InviteResolvable = string;
|
||||
|
||||
type InviteScope =
|
||||
| 'applications.builds.read'
|
||||
| 'applications.commands'
|
||||
| 'applications.entitlements'
|
||||
| 'applications.store.update'
|
||||
| 'connections'
|
||||
| 'email'
|
||||
| 'identity'
|
||||
| 'guilds'
|
||||
| 'guilds.join'
|
||||
| 'gdm.join'
|
||||
| 'webhook.incoming';
|
||||
|
||||
type GuildTemplateResolvable = string;
|
||||
|
||||
type MembershipStates = 'INVITED' | 'ACCEPTED';
|
||||
|
||||
Reference in New Issue
Block a user