如果单击另一个,如何自动删除反应?不和谐改写。 我需要使用upvotes和downvotes发出一个compose命令,但是如果您要单击二者,则需要自动删除,这将删除您之前放置的一个!
@client.command()
async def suggest(ctx, *, text):
usern = ctx.message.author
usern = str(usern)
embed = discord.Embed(
title = f"Suggestion from {usern}",
description = text,
colour = discord.Colour.green()
)
channel = client.get_channel(706785347840901131)
message = await channel.send(embed=embed)
emoji = "✅"
emoji2 = '❌'
await message.add_reaction(emoji)
await message.add_reaction(emoji2)