Create request class.

This commit is contained in:
2023-07-29 15:39:53 -04:00
parent c9946c9afe
commit 2d2631bfac
+28
View File
@@ -0,0 +1,28 @@
"""
Contains commands to request things from admins.
"""
import nextcord
from nextcord.ext import commands
class RequestCog(commands.Cog, name="Request Commands"):
"""
Class holds request commands.
"""
@nextcord.slash_command()
async def request(self, interaction: nextcord.Interaction):
"""
Parent slash command for help. Never called.
"""
@request.subcommand(description="Request to change your Dakiny nickname")
async def change_username(self, interaction: nextcord.Interaction, new_username: str):
"""
Sends a message to admins to request a username change.
Args:
interaction (nextcord.Interaction): Interaction that invoked the command.
new_username(str): The username to change to.
"""