I tried to send messages like this
client.api.channels(msg.channel.id).messages.post({
data: {
content: 'content',
test: 'test'
}
})
I was hoping that since it’s an API post request, it would save the test property.
const msgs = await client.api.channels(msg.channel.id).messages.get();
msg.channel.send(msgs[1].test) //error: cannot send an empty message
Changing .test to .content does send the content of the message the bot sent originally, but .test outputs undefined. Maybe I need to use node-fetch or https so it posts and gets directly?