types a bit

This commit is contained in:
Ryan Cao 2022-06-08 22:52:42 +08:00
parent c33398474e
commit d394096de3
No known key found for this signature in database
GPG key ID: 528A2C1B6656B97F
7 changed files with 8 additions and 8 deletions

View file

@ -25,7 +25,7 @@ export interface Command {
exec(
m: Message,
p: SuccessfulParsedMessage<Message<boolean>>
): Promise<Message> | Promise<any> | any;
): Promise<void> | void;
}
type Commands = Array<Command>;
@ -80,7 +80,7 @@ client.once('ready', async () => {
)
);
const POLYMC_GUILD = await client.guilds.fetch(BuildConfig.GUILD_ID);
// const POLYMC_GUILD = await client.guilds.fetch(BuildConfig.GUILD_ID);
client.on('messageCreate', async (e) => {
if (!e.content) return;