From b25d5f1b673a936e22facd2819039d0c16d0ed8f Mon Sep 17 00:00:00 2001 From: spiral Date: Wed, 30 Mar 2022 02:36:39 -0400 Subject: [PATCH] lint --- PluralKit.Bot/Commands/SystemEdit.cs | 6 +++--- .../Database/Repository/ModelRepository.Autoproxy.cs | 3 ++- PluralKit.Core/Database/Utils/QueryPatchWrapper.cs | 2 +- PluralKit.Core/Models/Patch/AutoproxyPatch.cs | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/PluralKit.Bot/Commands/SystemEdit.cs b/PluralKit.Bot/Commands/SystemEdit.cs index 6149ecf0..8e38f86c 100644 --- a/PluralKit.Bot/Commands/SystemEdit.cs +++ b/PluralKit.Bot/Commands/SystemEdit.cs @@ -346,7 +346,7 @@ public class SystemEdit var isOwnSystem = ctx.System.Id == target.Id; var noPronounsSetMessage = "This system does not have pronouns set."; - if (isOwnSystem) + if (isOwnSystem) noPronounsSetMessage += " To set some, type `pk;system pronouns `"; if (ctx.MatchRaw()) @@ -364,8 +364,8 @@ public class SystemEdit await ctx.Reply(noPronounsSetMessage); else await ctx.Reply($"{(isOwnSystem ? "Your" : "This system's")} current pronouns are **{target.Pronouns}**.\nTo print the pronouns with formatting, type `pk;system pronouns -raw`." - + (isOwnSystem ? " To clear them, type `pk;system pronouns -clear`." - : "" )); + + (isOwnSystem ? " To clear them, type `pk;system pronouns -clear`." + : "")); return; } diff --git a/PluralKit.Core/Database/Repository/ModelRepository.Autoproxy.cs b/PluralKit.Core/Database/Repository/ModelRepository.Autoproxy.cs index 5e0ecf64..c0ad0f3a 100644 --- a/PluralKit.Core/Database/Repository/ModelRepository.Autoproxy.cs +++ b/PluralKit.Core/Database/Repository/ModelRepository.Autoproxy.cs @@ -22,7 +22,8 @@ public partial class ModelRepository // todo: this might break with differently scoped autoproxy public async Task GetAutoproxySettings(SystemId system, ulong? guildId, ulong? channelId) - => await _db.QueryFirst(new Query("autoproxy").AsInsert(new { + => await _db.QueryFirst(new Query("autoproxy").AsInsert(new + { system = system, guild_id = guildId ?? 0, channel_id = channelId ?? 0, diff --git a/PluralKit.Core/Database/Utils/QueryPatchWrapper.cs b/PluralKit.Core/Database/Utils/QueryPatchWrapper.cs index f2a38b6b..a7fc4a27 100644 --- a/PluralKit.Core/Database/Utils/QueryPatchWrapper.cs +++ b/PluralKit.Core/Database/Utils/QueryPatchWrapper.cs @@ -33,4 +33,4 @@ internal static class SqlKataExtensions => func(new QueryPatchWrapper()).ToQuery(query); } -public class InvalidPatchException : Exception {} \ No newline at end of file +public class InvalidPatchException: Exception { } \ No newline at end of file diff --git a/PluralKit.Core/Models/Patch/AutoproxyPatch.cs b/PluralKit.Core/Models/Patch/AutoproxyPatch.cs index 4a6a036d..2016a4fa 100644 --- a/PluralKit.Core/Models/Patch/AutoproxyPatch.cs +++ b/PluralKit.Core/Models/Patch/AutoproxyPatch.cs @@ -6,7 +6,7 @@ using SqlKata; namespace PluralKit.Core; -public class AutoproxyPatch : PatchObject +public class AutoproxyPatch: PatchObject { public Partial AutoproxyMode { get; set; } public Partial AutoproxyMember { get; set; }