Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePhoDit committed Jul 19, 2020
2 parents 0793434 + 70d6672 commit 3be4b76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/events/messageCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export default async (caller: Caller, msg: Message): Promise<unknown> => {
if (!cmd && caller.db.has(`mail.snippets.${command.toLowerCase()}`)) {
const snippet = await caller.db.get(`mail.snippets.${command.toLowerCase()}`);
if (!snippet) return;
if (!((config.bot_helpers as string[]).some(r => msg.member!.roles.includes(r)))) return caller.utils.discord.createMessage(msg.channel.id, 'Invalid permissions.');
const userEmbed = new MessageEmbed()
.setAuthor(`${msg.author.username}#${msg.author.discriminator}`, msg.author.dynamicAvatarURL())
.setColor(COLORS.RED)
Expand Down

0 comments on commit 3be4b76

Please sign in to comment.