Skip to content

Commit

Permalink
fix(reaction-roles): Fix animated emojis
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco (Valandur) committed Dec 1, 2019
1 parent 8c252b1 commit 55186f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion i18n/bot/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@
},
"reactionRole": {
"noMessageFoundInDatabase": "cmd.reactionRole.noMessageFoundInDatabase",
"unknownEmojiBotNeedsToBeInGuildWithEmoji": "cmd.reactionRole.unknownEmojiBotNeedsToBeInGuildWithEmoji"
"unknownEmoji": "Unknown emoji. The bot must be in the guild where the emoji comes from!"
}
},
"JOIN_LEAVE_EMBEDS_IS_PREMIUM": "Using an embed as your join/leave message is a premium feature. Premium does not seem to be active on this server. Please contact us to learn more about how to purchase premium.",
Expand Down
2 changes: 2 additions & 0 deletions src/management/commands/messages/placeholder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ export default class extends Command {
embeds: newMessage.embeds
});

await message.delete().catch(() => undefined);

return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/management/commands/roles/reactionRoles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { BooleanResolver, RoleResolver, StringResolver } from '../../../framewor
import { CommandGroup, GuildPermission, ManagementCommand } from '../../../types';

const THUMBS_UP = '👍';
const CUSTOM_EMOJI_REGEX = /<:(\w+):(\d+)>/;
const CUSTOM_EMOJI_REGEX = /<(?:.*)?:(\w+):(\d+)>/;

export default class extends Command {
public constructor(client: IMClient) {
Expand Down

0 comments on commit 55186f8

Please sign in to comment.