mirror of
https://github.com/nx-bat/pet-the-pond.git
synced 2026-09-22 10:29:11 -04:00
fixed an issue.
This commit is contained in:
+5
-3
@@ -1,3 +1,5 @@
|
||||
import 'dotenv/config';
|
||||
|
||||
import { CommandClient, Constants, Guild, Member, Message, NullCollection, User } from 'athena-prime';
|
||||
import events from './events';
|
||||
|
||||
@@ -11,7 +13,7 @@ const client: CommandClient = new CommandClient({
|
||||
Constants.GatewayIntentBits.Guilds,
|
||||
Constants.GatewayIntentBits.GuildMembers,
|
||||
Constants.GatewayIntentBits.GuildMessages,
|
||||
Constants.GatewayIntentBits.MessageContent
|
||||
Constants.GatewayIntentBits.GuildMessageReactions
|
||||
],
|
||||
|
||||
largeBotOptimizations: true,
|
||||
@@ -21,8 +23,8 @@ const client: CommandClient = new CommandClient({
|
||||
members: () => new NullCollection(Member),
|
||||
messages: () => new NullCollection(Message),
|
||||
guilds: () => new NullCollection(Guild)
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
events.forEach(event => client.registerEvent(event));
|
||||
|
||||
Reference in New Issue
Block a user