Update
This commit is contained in:
parent
1e45354916
commit
118d081fd8
1 changed files with 3 additions and 2 deletions
|
@ -59,8 +59,9 @@ class rolebutton(commands.Cog):
|
||||||
name="refresh",
|
name="refresh",
|
||||||
description="refresh a role selection message",
|
description="refresh a role selection message",
|
||||||
)
|
)
|
||||||
async def rolerefresh(self, interaction: nextcord.Interaction, msgid: float):
|
async def rolerefresh(self, interaction: nextcord.Interaction, msgid):
|
||||||
msg = await nextcord.abc.Messageable.fetch_message(msgid)
|
msgid = float(msgid)
|
||||||
|
msg = await nextcord.abc.Messageable.fetch_message(id=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
|
||||||
|
|
Loading…
Reference in a new issue