mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 10:33:30 +01:00
refactor(Intents): remove computed shorts (#6050)
This commit is contained in:
3
typings/index.d.ts
vendored
3
typings/index.d.ts
vendored
@@ -804,9 +804,6 @@ export class IntegrationApplication extends Application {
|
||||
|
||||
export class Intents extends BitField<IntentsString> {
|
||||
public static FLAGS: Record<IntentsString, number>;
|
||||
public static PRIVILEGED: number;
|
||||
public static ALL: number;
|
||||
public static NON_PRIVILEGED: number;
|
||||
public static resolve(bit?: BitFieldResolvable<IntentsString, number>): number;
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
} from '..';
|
||||
|
||||
const client: Client = new Client({
|
||||
intents: Intents.NON_PRIVILEGED,
|
||||
intents: Intents.FLAGS.GUILDS,
|
||||
makeCache: Options.cacheWithLimits({
|
||||
MessageManager: 200,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user