From f48f6449105b50930f508288e96dfda19e53ee28 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 16 Aug 2021 17:57:45 +0200 Subject: [PATCH] =?UTF-8?q?New=20method=20that=20makes=20it=20easier=20to?= =?UTF-8?q?=20add=20the=20=E2=9C=85=20emoji=20when=20the=20requested=20com?= =?UTF-8?q?mand=20goes=20well,=20as=20well=20as=20errors.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/core.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/utils/core.py b/src/utils/core.py index faa6fac..a6fb3ed 100644 --- a/src/utils/core.py +++ b/src/utils/core.py @@ -214,3 +214,12 @@ def multipleArgsToTuple(frame): if arg: args.append(arg) 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])