#nonetype object has no attribute reply

1 messages · Page 1 of 1 (latest)

bleak lagoon
#

I don't understand why i can't respond to the interaction using await msg.reply(). Thanks

Code

https://paste.pythondiscord.com/ofaxujipop

Code Explanation

This is my ping command. If the ping is higher than 50ms, then I want the bot to reply to the inter.response.send_message(embed=embed) as if I right clicked a message and selected reply and ping the appropriate staff so that we can figure out why the bog is lagging.

Current Problem

When I execute the /ping command, it sends the embed like normal (as I have the latency purposefully set equal to 50), but then tells me that the reply part is failing.

Expected Results

I expect to execute the ping command. If the ping is >= 50 then the bot needs to reply to the message of the executed command, and tag the appropriate staff. If the ping is not >= 50 then it doesn't need to do anything but just send the latency back ephemerally.

Error

https://paste.pythondiscord.com/opaxizeqem

#

nonetype object has no attribute reply

dawn badge
#

.send_message doesn't return msg

#
msg = inter.original_response()
msg.reply()
bleak lagoon
#

that must have been an update, or I re-wrote my code wrong, but I've never had to use that before. thanks

finite sinewBOT
#
Solved!

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