#πŸ”’ Discord Bot Commands Names

28 messages Β· Page 1 of 1 (latest)

ruby bough
#

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?

eternal vergeBOT
#

@ruby bough

Python help channel opened

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.

cyan rover
#

and reload your client?

ruby bough
cyan rover
eternal vergeBOT
#
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.

ruby bough
#

@cyan rover

cyan rover
ruby bough
#

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?

ruby bough
#

ok i'll try

cyan rover
#

there are 3 ways:

  1. typehint to a Literal (i suggest you do this)
  2. typehint to an Enum (do this if you want the value of each choice to be different from its name)
  3. use the .choices decorator
cyan rover
#

this is just wrong

#

Select is a UI element that gets attached to views

#

this is a slash command parameter

eternal vergeBOT
#
Python help channel closed for inactivity

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.