Skip to content

Commit

Permalink
Include file in discord embed (aeon0#780)
Browse files Browse the repository at this point in the history
  • Loading branch information
egut125 authored May 18, 2022
1 parent ca38b93 commit b79d98b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/messages/discord_embeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def send_death(self, location, image_path):
e.description=(f"Died at {location}")
e.set_thumbnail(url=f"{self._psnURL}33L5e3600.png")
e.set_image(url="attachment://death.png")
self._send_embed(e, self._webhook)
self._send_embed(e, self._webhook, file)

def send_chicken(self, location, image_path):
file = self._add_file(image_path, "chicken.png")
Expand All @@ -60,7 +60,7 @@ def send_chicken(self, location, image_path):
e.description=(f"chickened at {location}")
e.set_thumbnail(url=f"{self._psnURL}39Ldf113b.png")
e.set_image(url="attachment://chicken.png")
self._send_embed(e, self._webhook)
self._send_embed(e, self._webhook, file)

def send_stash(self):
e = discord.Embed(title=f"{Config().general['name']} has a full stash!", color=Color.dark_grey())
Expand Down

0 comments on commit b79d98b

Please sign in to comment.