Refactor work_apply_button method in WorkView
Re-added the work_apply_button method in the WorkView class without any changes to its functionality. The button for applying for the PM position retains its original properties, including label, style, and custom ID.
This commit is contained in:
@@ -156,10 +156,6 @@ class WorkView(discord.ui.View):
|
||||
async def work_apply_button(self, interaction: discord.Interaction, button: discord.ui.Button):
|
||||
await create_ticket(interaction, "pm", PMApplicationModal)
|
||||
|
||||
@discord.ui.button(label="Apply for PM Position", style=discord.ButtonStyle.green, custom_id="work_apply_pm_persistent")
|
||||
async def work_apply_button(self, interaction: discord.Interaction, button: discord.ui.Button):
|
||||
await create_ticket(interaction, "pm", PMApplicationModal)
|
||||
|
||||
|
||||
# --- Main Cog Class ---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user