Some minor things ...
This commit is contained in:
parent
b0355cd332
commit
c28998b74a
3 changed files with 9 additions and 5 deletions
|
@ -1,5 +1,7 @@
|
|||
# pybot-f 2nd test extension ... other type of commands (this time, nogroup commands)
|
||||
# this code has been copied from the docs/github
|
||||
#
|
||||
#
|
||||
|
||||
import discord
|
||||
from discord import app_commands
|
||||
|
@ -9,7 +11,7 @@ class Test2Cog(commands.Cog):
|
|||
def __init__(self, bot: commands.Bot) -> None:
|
||||
self.bot = bot
|
||||
|
||||
@app_commands.command(name="command-1")
|
||||
@app_commands.command(name="testcmd-1")
|
||||
async def my_command(self, interaction: discord.Interaction) -> None:
|
||||
""" /command-1 """
|
||||
await interaction.response.send_message("Hello from command 1!", ephemeral=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue