hi, i'm trying to rename "add_role" and "remove_role" into "add_roles" and "remove_roles" like you can see it in vs code but in discord, when i restart my code and refresh my discord it dont works, is another place where the command names could be marked or could it be for another reason that I can't change the name of these commands?
#π Discord Bot Commands Names
28 messages Β· Page 1 of 1 (latest)
@ruby bough
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Closes after a period of inactivity, or when you send !close.
did you sync your command tree?
and reload your client?
yes
!paste - show me your code
Pasting large amounts of code
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
nowhere in your code are you syncing anything
how can i sync my code?
oh
okok i know
i was thinking bot.event bot.tree.sync was only for showing in the terminal that commands was sync ^^'
it changed my commands names finally thanks
@cyan rover btw can you explain me how can add duration option to my command like there pls?
discord.ui.Select
ok i'll try
for options?
there are 3 ways:
- typehint to a
Literal(i suggest you do this) - typehint to an
Enum(do this if you want the value of each choice to be different from its name) - use the
.choicesdecorator
no
this is just wrong
Select is a UI element that gets attached to views
this is a slash command parameter
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.