Discord get message returns empty content

Describe the problem/error/question

Hi I have followed the instruction (Discord credentials | n8n Docs) to setup discord bot.
The bot has right permission:


But when using the following node, I got empty content:
2
I got message id, author, send time etc, but not the content of the message.

Share the output returned by the last node

{
"id": 
"1212701863615****",
"type": 
0,
"content": 
"",
"channel_id": 
"12101216335******",
"author": 
{
"id": 
"****",
"username": 
"****",
"avatar": 
"********",
"discriminator": 
"0",
"public_flags": 
0,
"premium_type": 
0,
"flags": 
0,
"banner": 
null,
"accent_color": 
null,
"global_name": 
"*****",
"avatar_decoration_data": 
null,
"banner_color": 
null
},
"attachments": 
[
],
"embeds": 
[
],
"mentions": 
[
],
"mention_roles": 
[
],
"pinned": 
false,
"mention_everyone": 
false,
"tts": 
false,
"timestamp": 
"2024-02-29T10:04:15.197000+00:00",
"edited_timestamp": 
null,
"flags": 
0,
"components": 
[
]
},

Information on your n8n setup

  • **n8n version: 1.29.1
  • **Database (default: SQLite): SQLite
  • **n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • **Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • **Operating system: Openwrt

Can someone please help me?
Big thank you!

OK I figured it out, in discord dev portal you need to tick MESSAGE CONTENT INTENT.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.