Skip to content

Commit

Permalink
Added id to buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Endyya committed Dec 6, 2024
1 parent 4ae14bd commit 888722d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/SilicaAnimus/discord_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,19 +405,22 @@ async def update_member_list(interaction: discord.Interaction):
class Buttons(discord.ui.View):
@discord.ui.button(label = 'Afficher les membres masqués',
style = discord.ButtonStyle.primary,
disabled = True)
disabled = True,
custom_id = 'display')
async def button_display(self, interaction, button):
pass

@discord.ui.button(label = 'Confirmer',
style = discord.ButtonStyle.success,
disabled = True)
disabled = True,
custom_id = 'confirm')
async def button_confirm(self, interaction, button):
pass

@discord.ui.button(label = 'Annuler',
style = discord.ButtonStyle.danger,
disabled = True)
disabled = True,
custom_id = 'cancel')
async def button_cancel(self, interaction, button):
pass

Expand Down

0 comments on commit 888722d

Please sign in to comment.