From 666203ca7cb1a987311131dfbf234b866fb6c072 Mon Sep 17 00:00:00 2001 From: insert Date: Sat, 10 Aug 2024 16:11:31 -0400 Subject: [PATCH] Update --- rolebuttons.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rolebuttons.py b/rolebuttons.py index d49625a..2569eca 100644 --- a/rolebuttons.py +++ b/rolebuttons.py @@ -60,8 +60,8 @@ class rolebutton(commands.Cog): description="refresh a role selection message", ) async def rolerefresh(self, interaction: nextcord.Interaction, msgid): - msgid = float(msgid) - msg = await nextcord.abc.Messageable.fetch_message(id=msgid) + msgid = int(msgid) + msg = await nextcord.abc.Messageable.fetch_message(msgid) if msg.author.id != self.bot.application_id: await interaction.response.send_message("I can't edit that message", ephemeral=True) return