import discord
from discord.ext import commands
from discord.ext.commands import Bot
Bot = commands.Bot(command_prefix="!")
@Bot.command()
async def say(ctx,arg):
await ctx.send(arg)
@Bot.command()
async def info(ctx,member:discord.Member):
emb = discord.Embed(title='Информация о пользователе',color=0xff0000)
emb.add_field(name="Когда присоеденился:",value=member.joined_at,inline=False)
emb.add_field(name="Имя:",value=member.display_name,inline=False)
emb.add_field(name='Айди',value=member.id,inline=False)
emb.add_field(name="Аккаунт был создан:",value=member.created_at.strftime("%a,%#d %B %Y, %I:%M %p UTC"),inline=False)
emb.set_thumbnail(url=member.avatar_url)
emb.set_footer(text=f"Вызвано:{ctx.message.author}",icon_url=ctx.message.author.avatar_url)
emb.set_author(name=ctx.message.author,icon_url=ctx.message.author.avatar_url)
await ctx.send(embed = emb)
@Bot.command()
@commands.has_permissions(view_audit_log=True)
async def mute(ctx,member:discord.Member,time:int,reason):
muterole = discord.untils.get(ctx.guild.roles,id=839952960175341638)
emb = discord.Embed(title="Мут",color=0xff0000)
emb.add_field(name='Модератор',value=ctx.message.author.mention,inline=False)
emb.add_field(name='Нарушитель',value=member.mention,inline=False)
emb.add_field(name='Причина',value=reason,inline=False)
emb.add_field(name='Время',value=time,inline=False)
await ctx.send(embed = emb)