Skip to content

Commit 34d102f

Browse files
Merge pull request #118 from LewisProjects/development
make images on starboard work
2 parents 9ae0358 + 40fe5e7 commit 34d102f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cogs/Starboard.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ async def on_raw_reaction_add(self, payload):
3232
channel_history = await starboard_channel.history(
3333
limit=100
3434
).flatten()
35+
# check if message is already in starboard
3536
for msg in channel_history:
3637
if msg.embeds:
3738
if (
@@ -44,6 +45,8 @@ async def on_raw_reaction_add(self, payload):
4445
color=disnake.Color.gold(),
4546
timestamp=datetime.now(),
4647
)
48+
if message.attachments:
49+
embed.set_image(url=message.attachments[0].url)
4750
embed.set_author(
4851
name=message.author,
4952
icon_url=message.author.display_avatar.url,

0 commit comments

Comments
 (0)