From 04f2c496c92c0bfef6b78db16e932470cd190f03 Mon Sep 17 00:00:00 2001 From: Silvana <66652216+silvanathecat@users.noreply.github.com> Date: Sat, 6 Jan 2024 02:11:23 +0000 Subject: [PATCH] Fixed starboard config --- dozer/cogs/starboard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dozer/cogs/starboard.py b/dozer/cogs/starboard.py index df554b62..424fd439 100644 --- a/dozer/cogs/starboard.py +++ b/dozer/cogs/starboard.py @@ -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) @@ -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):