#problem with slash commands

1 messages · Page 1 of 1 (latest)

cinder stump
#

ctx.respond and not ctx.send

#

?

#

You HAVE to respond with ctx.resond or you will get the error

#

Not possible

#

Its a discord error

#

?

#

But why do you not just use ctx.respond?

#

??

primal charm
#

Then respond with a dummy message. Mark it ephemeral

cinder stump
#

@primal charm I was already close to ping you xd

primal charm
#

You need to send some response to slash cmds

#

Not really. Send smth like "Sent!"

cinder stump
#

Just use a prefix command...

#

Or just send the message as hidden like the error

#

ephermeral=True

#

But for that you have to use ctx.respond

#

And not ctx.send

cinder stump
#

But you know basic python?

#

Because you have the option more than one time defined?

primal charm
#

i would suggest using discord.Option(...) as a type hint directly on the paramter, or using the @discord.option(...) decorator

cinder stump
#

We cannot do anything for you

#

#help-rules

#

Dropdown

#

Options or autocomplete

#

Check out #faq

dire garnet
#

.solved