mirror of
https://github.com/weyne85/discord_music_bot.git
synced 2025-10-29 16:58:27 +00:00
Subclassing Button class for each button, changing context interface for handlers
This commit is contained in:
11
UI/Buttons/LoopAllButton.py
Normal file
11
UI/Buttons/LoopAllButton.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from discord import ButtonStyle, Interaction
|
||||
from discord.ui import Button
|
||||
from Config.Emojis import VEmojis
|
||||
|
||||
|
||||
class LoopAllButton(Button):
|
||||
def __init__(self):
|
||||
super().__init__(label="Loop All", style=ButtonStyle.secondary, emoji=VEmojis().LOOP_ALL)
|
||||
|
||||
async def callback(self, interaction: Interaction) -> None:
|
||||
pass
|
||||
Reference in New Issue
Block a user