Skip to content

Commit

Permalink
Fixed starboard config
Browse files Browse the repository at this point in the history
  • Loading branch information
silvanathecat authored Jan 6, 2024
1 parent 508d4e5 commit 04f2c49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dozer/cogs/starboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def make_starboard_embed(msg: discord.Message, reaction_count: int):
"""Makes a starboard embed."""
e = discord.Embed(color=msg.author.color, title=f"New Starred Message in #{msg.channel.name}",
description=msg.content, url=msg.jump_url)
e.set_author(name=escape_markdown(msg.author.display_name), icon_url=msg.author.display_avatar)
e.set_author(name=escape_markdown(msg.author.display_name.replace('\\', '')), icon_url=msg.author.display_avatar)

view_link = f" [[view]]({msg.jump_url})"
e.add_field(name="Link:", value=view_link)
Expand Down Expand Up @@ -254,7 +254,7 @@ async def showconfig(self, ctx: DozerContext):
@bot_has_permissions(add_reactions=True, embed_links=True)
@starboard.command()
async def config(self, ctx: DozerContext, channel: discord.TextChannel,
star_emoji: discord.Emoji,
star_emoji,
threshold: int, cancel_emoji: discord.Emoji = None):
"""Modify the settings for this server's starboard"""
if str(star_emoji) == str(cancel_emoji):
Expand Down

0 comments on commit 04f2c49

Please sign in to comment.