ReactionRoles: fix custom emoji reactions
This commit is contained in:
parent
5c912df34e
commit
49d3b4e21f
1 changed files with 2 additions and 2 deletions
|
@ -80,9 +80,9 @@ export class ReactionRolesPlugin extends Plugin {
|
|||
.map(v => v.split("=").map(v => v.trim())) // tslint:disable-line
|
||||
.map(
|
||||
(pair): ReactionRolePair => {
|
||||
const customEmojiMatch = pair[0].match(/^<:(?:.*?):(\d+)>$/);
|
||||
const customEmojiMatch = pair[0].match(/^<:(.*?):(\d+)>$/);
|
||||
if (customEmojiMatch) {
|
||||
return [customEmojiMatch[1], pair[1]];
|
||||
return [`${customEmojiMatch[1]}:${customEmojiMatch[2]}`, pair[1]];
|
||||
} else {
|
||||
return pair as ReactionRolePair;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue