Closed 0Q1BE closed 7 months ago
To track members and receive member related events such as memberJoin
you need to have the Server Members privileged intent enabled on your application's dashboard.
Also, since Discordia v2.11.0, you also need to explicitly define what privileged intents you want to use in your code as well using methods such as
client:enableAllIntents()
or client:enableIntents(...)
local discordia = require("discordia")
local client = discordia.Client()
client:enableIntents(discordia.enums.gatewayIntent.guildMembers)
P.S. You can get help quicker using the official discord
Thank you very much!
Hello. I was writing program that will add role to player when he joins the server, BUT when I was testing it from my twink account I didn't get any callback, but how if I even use
print()
!?Code:
Please, help me with this.