fix: fixed broken newline characters in Autoreact

This commit is contained in:
Seaswimmer 2023-08-08 15:04:16 -04:00
parent f0890e4829
commit cd75c785e6
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -72,10 +72,10 @@ class Galaxy(commands.Cog):
autoreact_target = await self.config.guild(ctx.guild).autoreact_target() autoreact_target = await self.config.guild(ctx.guild).autoreact_target()
if self.check_if_discord_unicode_emoji(emoji_id) is True: if self.check_if_discord_unicode_emoji(emoji_id) is True:
emoji = emoji_id emoji = emoji_id
embed = discord.Embed(color=await self.bot.get_embed_color(None), description=f"Autoreact is currently set to target <@{autoreact_target}> ({autoreact_target}).\Autoreact's emoji is currently set to {emoji}.") embed = discord.Embed(color=await self.bot.get_embed_color(None), description=f"Autoreact is currently set to target <@{autoreact_target}> ({autoreact_target}).\nAutoreact's emoji is currently set to {emoji}.")
else: else:
emoji = self.bot.get_emoji(emoji_id) emoji = self.bot.get_emoji(emoji_id)
embed = discord.Embed(color=await self.bot.get_embed_color(None), description=f"Autoreact is currently set to target <@{autoreact_target}> ({autoreact_target}).\Autoreact's emoji is currently set to {emoji} ({await self.config.guild(ctx.guild).autoreact_emoji()}).") embed = discord.Embed(color=await self.bot.get_embed_color(None), description=f"Autoreact is currently set to target <@{autoreact_target}> ({autoreact_target}).\nAutoreact's emoji is currently set to {emoji} ({await self.config.guild(ctx.guild).autoreact_emoji()}).")
await ctx.send(embed=embed) await ctx.send(embed=embed)
autoreact = app_commands.Group(name='autoreact', guild_only=True, description="This group handles the autoreact functionality.") autoreact = app_commands.Group(name='autoreact', guild_only=True, description="This group handles the autoreact functionality.")