implemented //icon with button confirmation system

This commit is contained in:
Cadence Ember 2023-08-25 16:01:19 +12:00
parent 30bf87b106
commit 69a01a0608
2 changed files with 70 additions and 8 deletions

View file

@ -197,6 +197,7 @@ module.exports = {
*/
async onReactionAdd(client, data) {
if (data.user_id === client.user.id) return // m2d reactions are added by the discord bot user - do not reflect them back to matrix.
discordCommandHandler.onReactionAdd(data)
if (data.emoji.id !== null) return // TODO: image emoji reactions
await addReaction.addReaction(data)
},