Last active
November 23, 2023 19:02
-
-
Save 0xicl33n/e5008c5865347aafc644a67455507314 to your computer and use it in GitHub Desktop.
discord.py rewrite send message when bot joins server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@0xicl33n Bro you commented though?