
Discord
- 256 ответов
- 0 вопросов
168
Вклад в тег
embed_obj = discord.Embed(description = "текст")
# или
embed_obj = discord.Embed()
embed_obj.description = "текст"
on_member_join(member)
<@Bot.event
async def on_member_join(member):
if role := member.guild.get_role(418187634689139935):
await member.add_roles(role)
bot.wait_for("reaction_add")
: https://discordpy.readthedocs.io/en/v1.3.4/api.htm...@bot.command(ctx):
async def test(ctx):
accept_decline = await ctx.send('Test')
await accept_decline.add_reaction('one')
try:
reaction = await bot.wait_for("reaction_add", timeout=60, check = lambda r, u: r=='one' )
except asyncio.TimeoutError:
await channel.send("\N{THUMBS DOWN SIGN}")
else:
await channel.send("\N{THUMBS UP SIGN}")
for p in psutil.process_iter():
print(p)