Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

discord get user slash command

##Using nextcord interactions
@client.slash_command(name="hello", description="Have the bot say hello to you.", guild_ids=[server_id])
async def command(interaction: Interaction):
    username = str(interaction.user)
    await interaction.response.send_message("Hello "+username)
 
PREVIOUS NEXT
Tagged: #discord #user #slash #command
ADD COMMENT
Topic
Name
4+3 =