mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 14:43:05 -04:00
handle replies for enlarge
This commit is contained in:
parent
c4898aa6b0
commit
e561d72780
1 changed files with 6 additions and 0 deletions
|
@ -24,6 +24,12 @@ module.exports = {
|
||||||
],
|
],
|
||||||
run: async (context, args) => {
|
run: async (context, args) => {
|
||||||
await context.triggerTyping()
|
await context.triggerTyping()
|
||||||
|
|
||||||
|
if (context.message.messageReference) {
|
||||||
|
let msg = await context.message.channel.fetchMessage(context.message.messageReference.messageId)
|
||||||
|
args.emoji = msg.content
|
||||||
|
}
|
||||||
|
|
||||||
const { matches } = Utils.regex(
|
const { matches } = Utils.regex(
|
||||||
Constants.DiscordRegexNames.EMOJI,
|
Constants.DiscordRegexNames.EMOJI,
|
||||||
args.emoji
|
args.emoji
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue