Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

message.content always equals "" (empty string) #407

Open
Bobenczyk opened this issue Mar 17, 2024 · 2 comments
Open

message.content always equals "" (empty string) #407

Bobenczyk opened this issue Mar 17, 2024 · 2 comments

Comments

@Bobenczyk
Copy link

my code:

local discordia = require('discordia')
local client = discordia.Client()

client:on('ready', function()
	print('Logged in as '.. client.user.username)
end)

client:on('messageCreate', function(message)
	if message.content == '!ping' then
		message.channel:send('Pong!')
	end
    print(message.content)
end)

client:run('Bot I GOT MY TOKEN HERE')
@MCausc78
Copy link

no messageContent intent, see #369

@Bobenczyk
Copy link
Author

thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants