diff --git a/rolebuttons.py b/rolebuttons.py index 2569eca..0f51c88 100644 --- a/rolebuttons.py +++ b/rolebuttons.py @@ -61,7 +61,7 @@ class rolebutton(commands.Cog): ) async def rolerefresh(self, interaction: nextcord.Interaction, msgid): msgid = int(msgid) - msg = await nextcord.abc.Messageable.fetch_message(msgid) + msg = await nextcord.abc.Messageable.fetch_message(self.bot, msgid) if msg.author.id != self.bot.application_id: await interaction.response.send_message("I can't edit that message", ephemeral=True) return