fix changes

This commit is contained in:
ITOH
2021-05-04 21:05:43 +02:00
parent d87d66649e
commit aefd5c75f5
16 changed files with 24 additions and 25 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ export function fetchMembers(
// You can request 1 member without the intent
if (
(!options?.limit || options.limit > 1) &&
!(ws.identifyPayload.intents & DiscordGatewayIntents.GUILD_MEMBERS)
!(ws.identifyPayload.intents & DiscordGatewayIntents.GuildMembers)
) {
throw new Error(Errors.MISSING_INTENT_GUILD_MEMBERS);
}
+1 -1
View File
@@ -24,7 +24,7 @@ export async function getMembers(
guildId: bigint,
options?: ListGuildMembers & { addToCache?: boolean },
) {
if (!(ws.identifyPayload.intents && DiscordGatewayIntents.GUILD_MEMBERS)) {
if (!(ws.identifyPayload.intents && DiscordGatewayIntents.GuildMembers)) {
throw new Error(Errors.MISSING_INTENT_GUILD_MEMBERS);
}