@bot.command()
async def идея(ctx, *, extra=None):
if extra == None:
await ctx.send(f'{author.mention} Введите **!идея [текст идеи]**')
embed = discord.Embed(
title=str(f'Идея от {ctx.author.display_name}'),
description=extra,
colour=0xcc6666
)
channel = bot.get_channel(840308938645045278)
msg = await channel.send(embed=embed)
await ctx.message.delete()
emoji1 = '<:thumbsup:1019288633645215744>'
emoji2 = ''
await msg.add_reaction(emoji1)
await msg.add_reaction(emoji2)
@bot.command()
async def идея(ctx, *, extra=None):
if extra == None:
await ctx.send(f'{author.mention} Введите **!идея [текст идеи]**')
embed = discord.Embed(
title=str(f'Идея от {ctx.author.display_name}'),
description=extra,
colour=0xcc6666
)
channel = bot.get_channel(840308938645045278)
msg = await channel.send(embed=embed)
await ctx.message.delete()
emoji1 = bot.get_emoji(1018930197665427476)
emoji2 = ''
reaction = await msg.add_reaction(emoji1)
await msg.add_reaction(emoji2)
@bot.command()
async def идея(ctx, *, extra=None):
if extra == None:
await ctx.send(f'{author.mention} Введите **!идея [текст идеи]**')
embed = discord.Embed(
title=str(f'Идея от {ctx.author.display_name}'),
description=extra,
colour=0xcc6666
)
channel = bot.get_channel(840308938645045278)
msg = await channel.send(embed=embed)
await ctx.message.delete()
emoji1 = '<:thumbsup:1019288633645215744>'
emoji2 = ''
await msg.add_reaction(emoji1)
await msg.add_reaction(emoji2)
@bot.command()
async def идея(ctx, *, extra=None):
if extra == None:
await ctx.send(f'{author.mention} Введите **!идея [текст идеи]**')
embed = discord.Embed(
title=str(f'Идея от {ctx.author.display_name}'),
description=extra,
colour=0xcc6666
)
channel = bot.get_channel(840308938645045278)
msg = await channel.send(embed=embed)
await ctx.message.delete()
emoji1 = bot.get_emoji(1018930197665427476)
emoji2 = ''
reaction = await msg.add_reaction(emoji1)
await msg.add_reaction(emoji2)
@bot.command()
async def идея(ctx, *, extra=None):
if extra == None:
await ctx.send(f'{author.mention} Введите **!идея [текст идеи]**')
embed = discord.Embed(
title=str(f'Идея от {ctx.author.display_name}'),
description=extra,
colour=0xcc6666
)
channel = bot.get_channel(840308938645045278)
msg = await channel.send(embed=embed)
await ctx.message.delete()
emoji1 = '<:thumbsup:1019288633645215744>'
emoji2 = ''
await msg.add_reaction(emoji1)
await msg.add_reaction(emoji2)
@bot.command()
async def идея(ctx, *, extra=None):
if extra == None:
await ctx.send(f'{author.mention} Введите **!идея [текст идеи]**')
embed = discord.Embed(
title=str(f'Идея от {ctx.author.display_name}'),
description=extra,
colour=0xcc6666
)
channel = bot.get_channel(840308938645045278)
msg = await channel.send(embed=embed)
await ctx.message.delete()
emoji1 = bot.get_emoji(1018930197665427476)
emoji2 = ''
reaction = await msg.add_reaction(emoji1)
await msg.add_reaction(emoji2)
@bot.command()
async def идея(ctx, *, extra=None):
if extra == None:
await ctx.send(f'{author.mention} Введите **!идея [текст идеи]**')
embed = discord.Embed(
title=str(f'Идея от {ctx.author.display_name}'),
description=extra,
colour=0xcc6666
)
channel = bot.get_channel(840308938645045278)
msg = await channel.send(embed=embed)
await ctx.message.delete()
emoji1 = '<:thumbsup:1019288633645215744>'
emoji2 = ''
await msg.add_reaction(emoji1)
await msg.add_reaction(emoji2)
@bot.command()
async def идея(ctx, *, extra=None):
if extra == None:
await ctx.send(f'{author.mention} Введите **!идея [текст идеи]**')
embed = discord.Embed(
title=str(f'Идея от {ctx.author.display_name}'),
description=extra,
colour=0xcc6666
)
channel = bot.get_channel(840308938645045278)
msg = await channel.send(embed=embed)
await ctx.message.delete()
emoji1 = bot.get_emoji(1018930197665427476)
emoji2 = ''
reaction = await msg.add_reaction(emoji1)
await msg.add_reaction(emoji2)
File "C:\Users\...\bot.py", line 42
emb.set_footer(text = author.name, icon_url = author.avatar_url)
^
IndentationError: unindent does not match any outer indentation level
@bot.command()
async def list(ctx):
await ctx.message.delete() #удалят сообщение с командой
emb = discord.Embed(title = 'Список', colour=discord.Color.red())
emb.set_author(name = self.client.user.name, icon_url = self.client.user.avatar_url)
emb.set_footer(text = author.name, icon_url = author.avatar_url)
adminID = 918202389226463282
admin = utils.get(ctx.guild.roles, id = adminID)
embed.add_field(name="Администраторы")
for member in role.members:
embed.add_field(value=f'{member.mention}')
moderID = 918202389197119566
moder = utils.get(ctx.guild.roles, id = moderID)
embed.add_field(name="Модераторы")
for member in role.members:
embed.add_field(value=f'{member.mention}')
await ctx.send( embed = embed )
@bot.command()
async def list(ctx):
await ctx.message.delete() #удалят сообщение с командой
embed = discord.Embed(title = 'Администраторы')
for guild in bot.guilds:
for member in guild.members:
guild = bot.get_guild(ctx.guild.id)
verif = guild.get_role(918202389226463282)
if verif in member.roles:
embed.add_field(value= f"{member.mention}",inline = False)
await ctx.send(embed = embed)
Может нужно что-то импортировать или ещё чего?