Forward messages function not working #1479
Unanswered
mainecoonnetwork
asked this question in
Q&A
Replies: 2 comments 1 reply
-
for @aiko-chan-ai: client.api.channels[channel.id].messages.post({
data: {
message_reference: {
channel_id: message.channel.id,
guild_id: message.guild.id,
message_id: message.id,
type: 1
}
}
}) |
Beta Was this translation helpful? Give feedback.
0 replies
-
fix: b83323d |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, so I’m trying to forward a message from source channel ID and send it to a target channel ID
The variables are all declared, but the forward function is just not working, I’m not sure why. It’s supposed to only need the target channel ID as a parameter. If anyone has an example code they can send, please do because I’m very confused.
This is my code
This is the error:
Error forwarding message: cannot send an empty message
but when i logged the source message’s content, it did have content, and was also a regular text message.
This is the forward function on the documentation page: https://discordjs-self-v13.netlify.app/#/docs/docs/main/class/Message?scrollTo=forward. I hope that I submitted this right
Beta Was this translation helpful? Give feedback.
All reactions