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.

e.Message.Content == "" empty

See original GitHub issue

https://www.youtube.com/watch?v=sPMw32ZGqX8

why e.message.content == ‘’ when i write ‘asdmslkadjsdak’ and etc

         var discord = new DiscordClient(new DiscordConfiguration()
            {
                Token = a_hui_na,
                TokenType = TokenType.Bot,
            });

            discord.MessageCreated += async (s, e) =>
            {
                Console.WriteLine(e.Message.Content);

                if (e.Message.Content.ToLower().StartsWith("ping"))
                    await e.Message.RespondAsync("pong!");
            };

            await discord.ConnectAsync();
            await Task.Delay(-1);

Issue Analytics

  • State:closed
  • Created 7 months ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
akeidevcommented, Feb 17, 2023

maybe because im russian

0reactions
OoLunarcommented, Feb 17, 2023

maybe because im russian

Politics does not belong in this issue or this repository, please take this mindset somewhere else.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Pycord message.content is empty
I'm playing around with the Discord API and noticed that I can't access the content of a message. This is my code: import...
Read more >
message.content is always empty? : r/Discord_Bots
OK so basically here's my code, when I print message.content to the console it always prints an empty string no matter what my...
Read more >
Message.content is empty when it triggers from a server ...
This message has to be sent via a discord server text channel, it works perfectly fine in DMs. Check the string of Message.content...
Read more >
Empty messages from discord - Repl.it Python Discord Bot
... and I'm having a weird error. It seems that the messages from discord are triggering the code, but there is nothing in...
Read more >
Message Content Privileged Intent FAQ - Developers - Discord
MESSAGE CONTENT IS BECOMING A NEW PRIVILEGED INTENT ... the message object in Gateway and API payloads will be empty—either an empty string ......
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