#Slash command description returns `-` when there is no description

1 messages · Page 1 of 1 (latest)

summer fox
#
for cmd in bot.slash_commands:
    description = cmd.body.description
    print(description) # Outputs '-' when it should be ''
#

it's not even a dash, it's - as I copied from the console

whole scroll
#

-e print('-' == '-')

gaunt ferryBOT
whole scroll
#

its a hyphen from a us/uk keyboard

#

the reason for this is every command and option requires a description on discord's end

#

if you don't want a description like this, you need to supply one

#

the only reason it ends up like this is so you aren't required to provide one

summer fox
#

I see

latent plankBOT
#
Solved!

Marked the thread as solved. If your question has not been answered, please open a new thread in #1019642966526140566.

#
Help Thread Closed

This thread was closed. To open a new thread, view the directions in #1019642966526140566.

summer fox
#

@pepereaction.sub_command_group(description='Deletes reactions')

#

Returns hyphen even when I have description

whole scroll
#

for which?

#

you need a description for the core command too

summer fox
#

for the sub commands too ?

whole scroll
#

show your code