aboutsummaryrefslogtreecommitdiff
path: root/src/events
diff options
context:
space:
mode:
authorMax Isom <[email protected]>2020-03-25 17:59:09 -0500
committerMax Isom <[email protected]>2020-03-25 17:59:09 -0500
commit4e1a156f9be48eaefbd3f6dc09f302db7deaddb2 (patch)
treebd10d224834684b242aefd87a475241d09e3b324 /src/events
parentdc70a37e962d39ddc5781525d3178e5d9ebe6861 (diff)
downloadmuse-4e1a156f9be48eaefbd3f6dc09f302db7deaddb2.tar.xz
muse-4e1a156f9be48eaefbd3f6dc09f302db7deaddb2.zip
Bump dependencies
Diffstat (limited to 'src/events')
-rw-r--r--src/events/guild-create.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/events/guild-create.ts b/src/events/guild-create.ts
index 3675b2c..e842b13 100644
--- a/src/events/guild-create.ts
+++ b/src/events/guild-create.ts
@@ -1,4 +1,4 @@
-import {Guild, MessageReaction, TextChannel} from 'discord.js';
+import {Guild, MessageReaction, TextChannel, User, Message} from 'discord.js';
import emoji from 'node-emoji';
import {Settings} from '../models';
@@ -45,7 +45,7 @@ export default async (guild: Guild): Promise<void> => {
await msg.react(channel.emoji);
}
- const reactions = await msg.awaitReactions((reaction, user) => user.id !== msg.author.id && emojiChannels.map(e => e.emoji).includes(reaction.emoji.name), {max: 1});
+ const reactions = await msg.awaitReactions((reaction: MessageReaction, user: User) => user.id !== msg.author.id && emojiChannels.map(e => e.emoji).includes(reaction.emoji.name), {max: 1});
const choice = reactions.first() as MessageReaction;
@@ -57,7 +57,7 @@ export default async (guild: Guild): Promise<void> => {
await owner.send(secondStep);
- const prefixResponses = await msg.channel.awaitMessages(r => r.content.length === 1, {max: 1});
+ const prefixResponses = await msg.channel.awaitMessages((r: Message) => r.content.length === 1, {max: 1});
const prefixCharacter = prefixResponses.first()!.content;