Create request class.
This commit is contained in:
@@ -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.
|
||||||
|
"""
|
||||||
Reference in New Issue
Block a user