Answer the question
In order to leave comments, you need to log in
Discord.py | How to make custom reactions in discord?
I have this code:
@client.command()
@commands.has_permissions(administrator=True)
async def notification(ctx, *, text,):
await ctx.message.delete()
file = discord.File("image2.png")
date = datetime.now().date().strftime('%d.%m.%y')
channel = client.get_channel(915650510168666112)
embed=discord.Embed(title=f"Новости Discord сервера за {date}", description=text, color=0x2f3136)
embed.set_image(url = "attachment://image2.png")
await channel.send(embed=embed, file=file)
message = await channel.send('||<@&916748143683575889>||')
emoji1 = '\U0001F44D'
emoji2 = '\U0001F44E'
await message.add_reaction(emoji1)
await message.add_reaction(emoji2)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question