New method that makes it easier to add the emoji when the requested command goes well, as well as errors.

This commit is contained in:
Mylloon 2021-08-16 17:57:45 +02:00
parent c59c3b610b
commit f48f644910

View file

@ -214,3 +214,12 @@ def multipleArgsToTuple(frame):
if arg: if arg:
args.append(arg) args.append(arg)
return tuple(args) return tuple(args)
async def addReaction(message, type: int):
"""Ajoute une réaction au message - 3 types dispo : 1: ✅ | 2: ❌ | 3: ❓"""
types = {
1: "",
2: "",
3: ""
}
return await message.add_reaction(emoji = types[type])