#Hello again, any idea how to remove the 'ROT Bot is thinking...'

60 messages · Page 1 of 1 (latest)

somber elk
#

I made an eval command that allows you to post the message publicly or not (slash command) and i cant figure out how to remove the 'ROT Bot is thinking...' message.

wicked lotus
#

Make sure you call editReply

somber elk
#

ok

wicked lotus
#

You sent another message

#

Instead of calling interaction.editReply

#

So ur bot will be left thinking for 15 minutes

somber elk
#

ok

wicked lotus
#

Afterwards, it'll say the app failed to respond

somber elk
#

ye

#

k

#

i think its fixed now

somber elk
#

so everyone can see it

#

not only me can see it

wicked lotus
#

Then don’t defer w/ ephermeral

somber elk
#

but how do i do it

wicked lotus
#

Wdym?

somber elk
#

interaction.channel.send()

#

was what i was doing

wicked lotus
#

You had to enable ephemeral when you deferred

somber elk
#

i want to make the evaluated message publicly visible

wicked lotus
#

Then don’t enable ephemeral when deferring

somber elk
wicked lotus
#

Wherever you defer…

somber elk
#

ok

#

ssorry

#

but

#

basicly its /eval code:bot message:True

wicked lotus
#

Oh, ur deferring every interaction, aren't you

somber elk
#

its a comamnd handeler

wicked lotus
#

That doesn’t justify deferring all slash cmd interactions

somber elk
wicked lotus
#

I use cmd handler too, but I don’t defer every single cmd

#

It works fine

somber elk
wicked lotus
#

deferReply

#

(And deferUpdate, but it’s not applicable to slash cmds)

somber elk
#

im not using that

wicked lotus
#

Yes you are

somber elk
#

im using interaction.editReply

wicked lotus
#

"Bot is thinking" comes from calling interaction.deferReply

somber elk
#

oh ok

wicked lotus
#

Well, is supposed to be at least. Apparently you can use followUp

somber elk
#

ye

#

here we go

#

a friend created the command handler

#

so idk how it realy works lol

wicked lotus
#

Yea, that's bad, but I’m guessing all cmds use editReply/followUp

wicked lotus
#

Just remove ephemeral

wicked lotus
#

Future refactor: remove deferReply and only call it in the command when needed, otherwise just reply

#

You only need to defer if ur making async calls or performing computationally heavy tasks