Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @bot.command(pass_context = True)
- async def mute(ctx, member: discord.Member):
- if ctx.message.author.server_permissions.administrator or ctx.message.author.id == '194151340090327041':
- role = discord.utils.get(member.server.roles, name='Muted')
- await bot.add_roles(member, role)
- embed=discord.Embed(title="User Muted!", description="**{0}** was muted by **{1}**!".format(member, ctx.message.author), color=0xff00f6)
- await bot.say(embed=embed)
- else:
- embed=discord.Embed(title="Permission Denied.", description="You don't have permission to use this command.", color=0xff00f6)
- await bot.say(embed=embed)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement