Archived
generated from imcompiling/discord-bot-template
Update the button looks.
This commit is contained in:
@@ -30,7 +30,7 @@ class TestCog(commands.Cog, name="Test commands."):
|
||||
|
||||
@test.subcommand()
|
||||
@is_me()
|
||||
async def election_start(self, interaction: nextcord.Interaction) -> None:
|
||||
async def open_raid(self, interaction: nextcord.Interaction) -> None:
|
||||
"""
|
||||
Force starts election.
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ class OpenRaid(nextcord.ui.View):
|
||||
def __init__(self) -> None:
|
||||
super().__init__(timeout=None, auto_defer=True)
|
||||
|
||||
@nextcord.ui.button(label="Tank", style=nextcord.ButtonStyle.blurple)
|
||||
@nextcord.ui.button(label="Tank", style=nextcord.ButtonStyle.blurple, emoji="🛡️")
|
||||
async def tank(self, button: nextcord.ui.Button, interaction: nextcord.Interaction) -> None:
|
||||
"""
|
||||
Signs a user up as a tank.
|
||||
@@ -17,12 +17,12 @@ class OpenRaid(nextcord.ui.View):
|
||||
Removes them if they are already signed up.
|
||||
|
||||
Args:
|
||||
button (nextcord.ui.Button): Unneeded.
|
||||
button (nextcord.ui.Button): Un-used.
|
||||
interaction (nextcord.Interaction): Interaction with command.
|
||||
|
||||
"""
|
||||
|
||||
@nextcord.ui.button(label="Healer", style=nextcord.ButtonStyle.green)
|
||||
@nextcord.ui.button(label="Healer", style=nextcord.ButtonStyle.green, emoji="❤️")
|
||||
async def healer(self, button: nextcord.ui.Button, interaction: nextcord.Interaction) -> None:
|
||||
"""
|
||||
Signs a user up as a healer.
|
||||
@@ -30,12 +30,12 @@ class OpenRaid(nextcord.ui.View):
|
||||
Removes them if they are already signed up.
|
||||
|
||||
Args:
|
||||
button (nextcord.ui.Button): Unneeded.
|
||||
button (nextcord.ui.Button): Un-used.
|
||||
interaction (nextcord.Interaction): Interaction with command.
|
||||
|
||||
"""
|
||||
|
||||
@nextcord.ui.button(label="DPS", style=nextcord.ButtonStyle.red)
|
||||
@nextcord.ui.button(label="DPS", style=nextcord.ButtonStyle.red, emoji="⚔️")
|
||||
async def dps(self, button: nextcord.ui.Button, interaction: nextcord.Interaction) -> None:
|
||||
"""
|
||||
Signs a user up as dps.
|
||||
@@ -43,7 +43,7 @@ class OpenRaid(nextcord.ui.View):
|
||||
Removes them if they are already signed up.
|
||||
|
||||
Args:
|
||||
button (nextcord.ui.Button): Unneeded.
|
||||
button (nextcord.ui.Button): Un-used.
|
||||
interaction (nextcord.Interaction): Interaction with command.
|
||||
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user