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:
parent
c59c3b610b
commit
f48f644910
1 changed files with 9 additions and 0 deletions
|
@ -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])
|
||||||
|
|
Reference in a new issue