#Slash Command do not work

1 messages · Page 1 of 1 (latest)

indigo sandBOT
#

Hey! Once your issue is solved, press the button below to close this thread!

dense edge
#
import interactions
from interactions import Client, Intents, listen, slash_command, SlashContext

# Create bot instance
bot = Client(intents=Intents.ALL)

@listen() 
async def on_ready():
    # This event is called when the bot is ready to respond to commands
    print("Ready")
    print(f"This bot is owned by {bot.owner}")

@slash_command(name="my_command", description="My first command :)")
async def my_command_function(ctx: SlashContext):
    await ctx.send("Hello World")

# Run the bot
bot.start(Token)
#

Soo basically the issue is, slash command dont work, rest is fine, have never use interactions.py before.

wary bluff
#

Do you have any errors?

dense edge
#

:P

#

And no I didnt have any errors