How to rename argument? #1077
Unanswered
UniMasOffical
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Change Show your code if you are not sure what that means. |
Beta Was this translation helpful? Give feedback.
0 replies
-
try import nextcord
from nextcord.ext import commands
bot = commands.Bot(command_prefix="!")
@bot.slash_command(name="find", description="Finds a user by ID")
@nextcord.option(name="user_id", description="The user's ID")
async def find(interaction: nextcord.Interaction, user_id: int):
await interaction.response.send_message(f"Searching for user with ID: {user_id}") once you bot.run you will see /find user_id:000000000000000001 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to rename command argument
Command Example
/find user_id:000000000000000001
For now, just this:
/find arg:000000000000000001
Please help
Beta Was this translation helpful? Give feedback.
All reactions