This commit is contained in:
insert 2024-08-10 16:13:16 -04:00
parent 666203ca7c
commit 4ad76e1439
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -61,7 +61,7 @@ class rolebutton(commands.Cog):
) )
async def rolerefresh(self, interaction: nextcord.Interaction, msgid): async def rolerefresh(self, interaction: nextcord.Interaction, msgid):
msgid = int(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: if msg.author.id != self.bot.application_id:
await interaction.response.send_message("I can't edit that message", ephemeral=True) await interaction.response.send_message("I can't edit that message", ephemeral=True)
return return