Skip to content

Commit

Permalink
T900 workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
yakMM committed Sep 25, 2020
1 parent 40359c5 commit 3b8663d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# v1.15:
- Cap points are no longer counted in team netscore
- Updated score sheet visual
- Added author in all embeds as workaround for discord android app bug T900 (long enbeds on mobile)

# v1.14:
- Added sub command for staff
Expand Down
4 changes: 3 additions & 1 deletion bot/modules/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,9 @@ async def display(self, ctx, sendFct, *args, **kwargs):
if self.__embedFct!=None:
embed = self.__embedFct(ctx, **kwargs)
# Fixes the embed mobile bug but ugly af:
#embed.set_author(name="_____________________________")
embed.set_author(name="Planetside Open Games",
url="https://docs.google.com/document/d/13rsrWA4r16gpB-F3gvx5HWf2T974mdHLraPSjh5DO1Q/",
icon_url = "https://media.discordapp.net/attachments/739231714554937455/739522071423614996/logo_png.png")

if self.__ping and not author is None:
msg = await sendFct(content=f'{author.mention} {string}', embed=embed)
Expand Down

0 comments on commit 3b8663d

Please sign in to comment.