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:
2025-09-23 02:43:57 -04:00
parent 500c7daaae
commit 65ddb244fe

View File

@@ -156,10 +156,6 @@ class WorkView(discord.ui.View):
async def work_apply_button(self, interaction: discord.Interaction, button: discord.ui.Button): async def work_apply_button(self, interaction: discord.Interaction, button: discord.ui.Button):
await create_ticket(interaction, "pm", PMApplicationModal) 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 --- # --- Main Cog Class ---