@client.command()
@commands.has_permissions( manage_messages = True )
async def roles(ctx, guild:int=None):
guild = await client.fetch_guild(guild)
if not guild:
await ctx.send("обэме")
await ctx.send(embed=disnake.Embed(title=f"Роли сервера({len(guild.roles)})", description="\n".join([f"{role.name} - `{len(role.members)}`" for role in guild.roles])))
await ctx.send(embed=disnake.Embed(title=f"Роли сервера({len(guild.roles)})", description="\n".join([f"{role.name} - `{len(role.members)}`" for role in guild.roles])))