Ask coding questions

← Back to all posts
My @client.event wont define.
h
ironiqq1 (1)

Hey everyone! Im trying to make a dm welcome bot for my discord server, (dms the person who joined a certain welcome message) but my @client.event, in the console log when i try to run it, it says, “client is not defined” i dont know how to “define” it can anyone help me?

Comments
hotnewtop
19ecal (230)

I think you have to do client=discord.Client() at the start. Also, your repl is private and we can't see it.

ironiqq1 (1)

@19ecal i have put it on public, you should be able to see it now.

19ecal (230)

@ironiqq1 Yes, I'm fairly sure you have to do client=discord.Client() at the start. Try that