lint
This commit is contained in:
parent
be89f907a0
commit
b25d5f1b67
@ -365,7 +365,7 @@ public class SystemEdit
|
|||||||
else
|
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`."
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,7 +22,8 @@ public partial class ModelRepository
|
|||||||
|
|
||||||
// todo: this might break with differently scoped autoproxy
|
// todo: this might break with differently scoped autoproxy
|
||||||
public async Task<AutoproxySettings> GetAutoproxySettings(SystemId system, ulong? guildId, ulong? channelId)
|
public async Task<AutoproxySettings> GetAutoproxySettings(SystemId system, ulong? guildId, ulong? channelId)
|
||||||
=> await _db.QueryFirst<AutoproxySettings>(new Query("autoproxy").AsInsert(new {
|
=> await _db.QueryFirst<AutoproxySettings>(new Query("autoproxy").AsInsert(new
|
||||||
|
{
|
||||||
system = system,
|
system = system,
|
||||||
guild_id = guildId ?? 0,
|
guild_id = guildId ?? 0,
|
||||||
channel_id = channelId ?? 0,
|
channel_id = channelId ?? 0,
|
||||||
|
@ -33,4 +33,4 @@ internal static class SqlKataExtensions
|
|||||||
=> func(new QueryPatchWrapper()).ToQuery(query);
|
=> func(new QueryPatchWrapper()).ToQuery(query);
|
||||||
}
|
}
|
||||||
|
|
||||||
public class InvalidPatchException : Exception {}
|
public class InvalidPatchException: Exception { }
|
@ -6,7 +6,7 @@ using SqlKata;
|
|||||||
|
|
||||||
namespace PluralKit.Core;
|
namespace PluralKit.Core;
|
||||||
|
|
||||||
public class AutoproxyPatch : PatchObject
|
public class AutoproxyPatch: PatchObject
|
||||||
{
|
{
|
||||||
public Partial<AutoproxyMode> AutoproxyMode { get; set; }
|
public Partial<AutoproxyMode> AutoproxyMode { get; set; }
|
||||||
public Partial<MemberId?> AutoproxyMember { get; set; }
|
public Partial<MemberId?> AutoproxyMember { get; set; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user