We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9ae0358 + 40fe5e7 commit 34d102fCopy full SHA for 34d102f
cogs/Starboard.py
@@ -32,6 +32,7 @@ async def on_raw_reaction_add(self, payload):
32
channel_history = await starboard_channel.history(
33
limit=100
34
).flatten()
35
+ # check if message is already in starboard
36
for msg in channel_history:
37
if msg.embeds:
38
if (
@@ -44,6 +45,8 @@ async def on_raw_reaction_add(self, payload):
44
45
color=disnake.Color.gold(),
46
timestamp=datetime.now(),
47
)
48
+ if message.attachments:
49
+ embed.set_image(url=message.attachments[0].url)
50
embed.set_author(
51
name=message.author,
52
icon_url=message.author.display_avatar.url,
0 commit comments