This commit is contained in:
insert 2024-08-10 16:11:31 -04:00
parent 118d081fd8
commit 666203ca7c
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -60,8 +60,8 @@ class rolebutton(commands.Cog):
description="refresh a role selection message", description="refresh a role selection message",
) )
async def rolerefresh(self, interaction: nextcord.Interaction, msgid): async def rolerefresh(self, interaction: nextcord.Interaction, msgid):
msgid = float(msgid) msgid = int(msgid)
msg = await nextcord.abc.Messageable.fetch_message(id=msgid) msg = await nextcord.abc.Messageable.fetch_message(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