def on_server_join(server):
"""Create the Admin role, Muted role, and then add Muted perms to every channel, given correct perms."""
await bot.create_role(server, name="Poi's Admiral")
muted = await bot.create_role(server, name="Muted", permissions=discord.Permissions(permissions=1115136))
await make_muted_perms(server, muted)
await bot.send_message(server, "Hello! I'm a bot invited to the server to make your life a little easier and more fun! Please move the `Yuudachi Kai` role to underneath your Admin role and then move the `Muted` role underneath that so that I can mute people properly! Everything else has been set up already if you gave me the `Administrator` permission. Thanks!")
评论列表
文章目录