From 957627691e561833153b68aca1ba378434c33458 Mon Sep 17 00:00:00 2001 From: LeptoFlare <47790183+LeptoFlare@users.noreply.github.com> Date: Wed, 30 Jun 2021 10:28:20 -0400 Subject: [PATCH] Add members intents to test.py Fix super call in reaction.py --- blurple/io/reaction.py | 2 +- test.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/blurple/io/reaction.py b/blurple/io/reaction.py index 84d1226..0476309 100644 --- a/blurple/io/reaction.py +++ b/blurple/io/reaction.py @@ -35,7 +35,7 @@ class ReactionAddReply(ReactionAddBasic): async def on_reply_init(self, message: discord.Message): """Specialized to add vaild reaction emojis to message, if validation is on.""" - super().on_reply_init(message) + await super().on_reply_init(message) if self._iscontainer(self.validate): for react in self.validate: await self.message.add_reaction(react) diff --git a/test.py b/test.py index e2989cf..6ea0a47 100644 --- a/test.py +++ b/test.py @@ -4,8 +4,9 @@ from blurple import ui, io, ext - -bot = commands.Bot(command_prefix='!') +intents = discord.Intents.default() +intents.members = True +bot = commands.Bot(command_prefix="!", intents=intents) bot.help_command = ext.HelpCommand() router = ext.Router(bot)