Move all files into agon module.

This commit is contained in:
2025-03-19 09:07:39 -04:00
parent a46dc0388c
commit 17769022bc
29 changed files with 0 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
"""Views used for submission process."""
import nextcord
from nextcord.ext import commands
class SubmissionCreateButton(nextcord.ui.View):
"""Defines view for score submission button."""
def __init__(self, bot: commands.Bot):
super().__init__(timeout=None)
self._bot = bot
@nextcord.ui.button(label="Submit", style=nextcord.ButtonStyle.primary, custom_id="submitcreate")
async def submitcreate_button(self, button: nextcord.ui.Button, interaction: nextcord.Interaction) -> None: # noqa: ARG002
"""
Button for score submission.
Is deprecated, sends response telling user to use the new command instead.
"""
await interaction.response.send_message(
"This feature has been deprecated. Please use the '/submit' slash command instead.", ephemeral=True
)