question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: SocketMessage.Content is empty

See original GitHub issue

Check The Docs

  • I double checked the docs and couldn’t find any useful information.

Verify Issue Source

  • I verified the issue was caused by Discord.Net.

Check your intents

  • I double checked that I have the required intents.

Description

After updating to 3.8.1 or later, SocketMessage.Content is empty. With 3.8.0 or earlier, SocketMessage.Content is populated correctly.

Version

3.8.1

Working Version

3.8.0

Logs

n/a

Sample

private DiscordSocketClient _client;

public void Run()
{
    _client = new DiscordSocketClient(new DiscordSocketConfig
        {
	    AlwaysDownloadUsers = true,
	    LogLevel = LogSeverity.Debug
	});

    await _client.LoginAsync(TokenType.Bot, "secret");
    await _client.StartAsync();

    _client.MessageReceived += ProcessMessage;

    await Task.Delay(-1);
}

public void ProcessMessage(SocketMessage message)
{
    // message.Content is empty here
}

Packages

n/a

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Misha-133commented, Jan 2, 2023

Duplicate #2499, #2482, #2470

0reactions
MrCakeSlayercommented, Jan 2, 2023

Closing due to duplicate + solved

Read more comments on GitHub >

github_iconTop Results From Across the Web

SocketMessage Content is empty : r/Discord_Bots
i'm trying to dev a discord bot in c# that reads messages from a specific channel.The SocketMessage object contains infos like author channel ......
Read more >
Discord.Net Received Message Content always Empty
1 Answer. If you haven't already, enable "Message Content Intent" in the Discord developer portal and add the MessageContent intent to the ...
Read more >
message.content blank · Issue #6820 · Rapptz/discord.py
message.content can be blank if the message doesn't feature any content, eg when the message is exclusively an embed.
Read more >
MessageCreate.Content is empty · Issue #961
This is a change on Discords side, not entirely sure what it is, but it only impacts Self bots (fixed by adding bot...
Read more >
Logs flooded with "Error App: Error sending socket message"
Since I installed Wireguard on my raspberry pi4, where I have emby server runnin, I got the logs flooded with: 2021-09-15 00:01:03.504 Error...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found