added image functionality
This commit is contained in:
@@ -57,6 +57,7 @@ async def on_reaction_add(react: discord.Reaction, user: discord.User):
|
||||
message: discord.Message = react.message
|
||||
reaction: discord.Reaction = react.emoji
|
||||
link: str = react.message.jump_url
|
||||
image: str = react.message.attachments[0].url
|
||||
|
||||
react_uid: int = react.emoji.id
|
||||
message_uid: int = message.id
|
||||
@@ -82,6 +83,7 @@ async def on_reaction_add(react: discord.Reaction, user: discord.User):
|
||||
timestamp=datetime.datetime.now())
|
||||
|
||||
embed.set_author(name=f"{react.message.author}")
|
||||
embed.set_image(url=image)
|
||||
|
||||
posting_channel: discord.TextChannel = await client.fetch_channel(args.channel_id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user