mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Various small fixes, setting guild config now works
This commit is contained in:
parent
2038f023a0
commit
c875c8af9f
9 changed files with 56 additions and 70 deletions
|
|
@ -67,7 +67,7 @@ namespace PluralKit.Bot
|
|||
else
|
||||
blacklist.UnionWith(affectedChannels.Select(c => c.Id));
|
||||
await conn.ExecuteAsync("update servers set log_blacklist = @LogBlacklist where id = @Id",
|
||||
new {ctx.Guild.Id, LogBlacklist = blacklist});
|
||||
new {ctx.Guild.Id, LogBlacklist = blacklist.ToArray()});
|
||||
}
|
||||
|
||||
await ctx.Reply(
|
||||
|
|
@ -99,7 +99,7 @@ namespace PluralKit.Bot
|
|||
else
|
||||
blacklist.UnionWith(affectedChannels.Select(c => c.Id));
|
||||
await conn.ExecuteAsync("update servers set blacklist = @Blacklist where id = @Id",
|
||||
new {ctx.Guild.Id, Blacklist = blacklist});
|
||||
new {ctx.Guild.Id, Blacklist = blacklist.ToArray()});
|
||||
}
|
||||
|
||||
await ctx.Reply($"{Emojis.Success} Channels {(onBlacklist ? "added to" : "removed from")} the proxy blacklist.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue