Update
This commit is contained in:
parent
118d081fd8
commit
666203ca7c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue