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:
ckohen
2021-02-10 06:52:44 -08:00
committed by GitHub
parent 56d8b445ed
commit ae3c3d80ee
4 changed files with 60 additions and 1 deletions

15
typings/index.d.ts vendored
View File

@@ -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';