chore: code cleanup (mostly whitespace / remove unused imports)
This commit is contained in:
		@@ -1,10 +1,6 @@
 | 
			
		||||
using Humanizer;
 | 
			
		||||
 | 
			
		||||
using Myriad.Builders;
 | 
			
		||||
using Myriad.Types;
 | 
			
		||||
 | 
			
		||||
using NodaTime;
 | 
			
		||||
 | 
			
		||||
using PluralKit.Core;
 | 
			
		||||
 | 
			
		||||
namespace PluralKit.Bot;
 | 
			
		||||
 
 | 
			
		||||
@@ -1,15 +1,11 @@
 | 
			
		||||
using System.Text;
 | 
			
		||||
using System.Text.RegularExpressions;
 | 
			
		||||
 | 
			
		||||
using Humanizer;
 | 
			
		||||
 | 
			
		||||
using Myriad.Builders;
 | 
			
		||||
using Myriad.Types;
 | 
			
		||||
 | 
			
		||||
using Newtonsoft.Json.Linq;
 | 
			
		||||
 | 
			
		||||
using NodaTime;
 | 
			
		||||
 | 
			
		||||
using PluralKit.Core;
 | 
			
		||||
 | 
			
		||||
namespace PluralKit.Bot;
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,5 @@
 | 
			
		||||
using System.Text;
 | 
			
		||||
 | 
			
		||||
using Myriad.Extensions;
 | 
			
		||||
using Myriad.Rest.Exceptions;
 | 
			
		||||
using Myriad.Rest.Types;
 | 
			
		||||
using Myriad.Rest.Types.Requests;
 | 
			
		||||
 
 | 
			
		||||
@@ -5,8 +5,6 @@ using Humanizer;
 | 
			
		||||
using Myriad.Builders;
 | 
			
		||||
using Myriad.Types;
 | 
			
		||||
 | 
			
		||||
using NodaTime;
 | 
			
		||||
 | 
			
		||||
using PluralKit.Core;
 | 
			
		||||
 | 
			
		||||
namespace PluralKit.Bot;
 | 
			
		||||
 
 | 
			
		||||
@@ -323,6 +323,7 @@ public class MemberEdit
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    private string boldIf(string str, bool condition) => condition ? $"**{str}**" : str;
 | 
			
		||||
 | 
			
		||||
    private async Task<EmbedBuilder> CreateMemberNameInfoEmbed(Context ctx, PKMember target)
 | 
			
		||||
    {
 | 
			
		||||
        var lcx = ctx.LookupContextFor(target.System);
 | 
			
		||||
 
 | 
			
		||||
@@ -20,6 +20,7 @@ namespace PluralKit.Bot;
 | 
			
		||||
public class ProxiedMessage
 | 
			
		||||
{
 | 
			
		||||
    private static readonly Duration EditTimeout = Duration.FromMinutes(10);
 | 
			
		||||
 | 
			
		||||
    // private readonly IDiscordCache _cache;
 | 
			
		||||
    private readonly IClock _clock;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -3,10 +3,6 @@ using System.Text.RegularExpressions;
 | 
			
		||||
using Myriad.Builders;
 | 
			
		||||
using Myriad.Types;
 | 
			
		||||
 | 
			
		||||
using NodaTime;
 | 
			
		||||
using NodaTime.Text;
 | 
			
		||||
using NodaTime.TimeZones;
 | 
			
		||||
 | 
			
		||||
using PluralKit.Core;
 | 
			
		||||
 | 
			
		||||
namespace PluralKit.Bot;
 | 
			
		||||
@@ -479,9 +475,10 @@ public class SystemEdit
 | 
			
		||||
            }
 | 
			
		||||
            else
 | 
			
		||||
            {
 | 
			
		||||
                throw new PKSyntaxError(
 | 
			
		||||
                    "This system does not have a banner image set." + (isOwnSystem ? "Set one by attaching an image to this command, or by passing an image URL or @mention." : ""));
 | 
			
		||||
                throw new PKSyntaxError("This system does not have a banner image set."
 | 
			
		||||
                    + (isOwnSystem ? "Set one by attaching an image to this command, or by passing an image URL or @mention." : ""));
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -514,7 +511,6 @@ public class SystemEdit
 | 
			
		||||
                ? ctx.Reply(msg, new EmbedBuilder().Image(new Embed.EmbedImage(img.Url)).Build())
 | 
			
		||||
                : ctx.Reply(msg));
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public async Task Delete(Context ctx, PKSystem target)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user