How do I edit a message using message.edit()?
Currently, here's my code:
16 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ah yes the error: here it is:
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
how
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
i mean like what do i put inside the .then?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
so then you save it as message?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
i had it saved as a variable called message, so it would be with the msg param
message = msg;
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ok so you don't want me to add the promise and just do message = channel.send(msg)?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
i'm gonna guess that's a yes
and it's still same error, would it be channel.message.edit?
just a guess tho
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
here's what i'm doing to try to save the message (probably definetly not correct):
channel.send(cmd).then(message)
oh i got it working