#Sending replies privately on slash commands

1 messages · Page 1 of 1 (latest)

shell glade
#

How do I send replies from slash commands privately to the user using interactions?

uncut matrixBOT
#

Hey! Once your issue is solved, press the button below to close this thread!

slow panther
#

The best way would be to send a hidden message by adding ephemeral=True to ctx.send

shell glade
#

I tried adding it and it doesn't seem to work

#

I've tried looking at the message history in this server but can't find a fix

slow panther
shell glade
#

The entire slash command?

#
await ctx.send("This is a test ephemeral", ephemeral = True )```
#

This is what I'm doing

#

still sends it as a public message though

slow panther
#

That's very weird

whole condor
#

Do you have autodefer enabled?

fluid cloud
#

Are you doing a defer further up? That's the problem I had before. I added the ephemeral true to my defer and it worked like a charm.