This commit is contained in:
insert 2024-08-10 16:09:59 -04:00
parent 1e45354916
commit 118d081fd8
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -59,8 +59,9 @@ class rolebutton(commands.Cog):
name="refresh",
description="refresh a role selection message",
)
async def rolerefresh(self, interaction: nextcord.Interaction, msgid: float):
msg = await nextcord.abc.Messageable.fetch_message(msgid)
async def rolerefresh(self, interaction: nextcord.Interaction, msgid):
msgid = float(msgid)
msg = await nextcord.abc.Messageable.fetch_message(id=msgid)
if msg.author.id != self.bot.application_id:
await interaction.response.send_message("I can't edit that message", ephemeral=True)
return