-
-
Save 0xicl33n/e5008c5865347aafc644a67455507314 to your computer and use it in GitHub Desktop.
@bot.event | |
async def on_guild_join(guild): | |
for channel in guild.text_channels: | |
if channel.permissions_for(guild.me).send_messages: | |
await channel.send('Hey there! this is the message i send when i join a server') | |
break | |
i doesnt work for me, i dont get even a error message.....
i'Ve enabled intents.guilds = True
maybe cuz the library (discord.py) is now dead
i doesnt work for me, i dont get even a error message.....
i'Ve enabled intents.guilds = Truemaybe cuz the library (discord.py) is now dead
hmmmm me is work how you not work?
Yes, possible. Try the new library "Py-Cord" and go through their docs, it's pretty similar to DPY but Py-Cord is what I recommend to use now, after all, discord.py is discontinued.
@0xicl33n the thing is that, this gist is just super super useful
@0xicl33n the thing is that, this gist is just super super useful
i agree, im using discord.py still and was trying to figure this out exactly lmao, very helpful indeed <3
@0xicl33n Bro you commented though?
Thank you
Just add "self" before guild at line 9