SinisterRectus / Discordia

Discord API library written in Lua for the Luvit runtime environment
MIT License
688 stars 144 forks source link

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

Open Bobenczyk opened 5 months ago

Bobenczyk commented 5 months ago

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 commented 5 months ago

no messageContent intent, see https://github.com/SinisterRectus/Discordia/discussions/369

Bobenczyk commented 5 months ago

thx