This commit is contained in:
insert 2024-08-09 09:34:45 -04:00
parent 3a80be2637
commit 73559076b6
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -31,9 +31,9 @@ class rolebutton(commands.Cog):
name="roletest", name="roletest",
description="check if the buttons work", description="check if the buttons work",
) )
async def roletest(self, interaction: nextcord.Interaction, victim: nextcord.Member = nextcord.SlashOption(name="victim")): async def roletest(self, interaction: nextcord.Interaction):
self.bot.roleguild = interaction.guild self.bot.roleguild = interaction.guild
await interaction.response.send_modal(view=RoleView(self.bot)) await interaction.response.send_message(view=RoleView(self.bot))
def setup(bot: commands.Bot): def setup(bot: commands.Bot):
bot.add_cog(rolebutton(bot)) bot.add_cog(rolebutton(bot))