Skip to content

Instantly share code, notes, and snippets.

@0xicl33n
Last active November 23, 2023 19:02
Show Gist options
  • Save 0xicl33n/e5008c5865347aafc644a67455507314 to your computer and use it in GitHub Desktop.
Save 0xicl33n/e5008c5865347aafc644a67455507314 to your computer and use it in GitHub Desktop.
discord.py rewrite send message when bot joins server
@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
@YbicG
Copy link

YbicG commented Sep 21, 2022

@0xicl33n Bro you commented though?

@Thecode764
Copy link

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment