fixed an issue.

This commit is contained in:
2026-08-26 10:05:50 +08:00
parent 8d4d99f2e8
commit 00c64f449a
9 changed files with 25 additions and 24 deletions
+5 -3
View File
@@ -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));