mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 16:20:13 +00:00
remove rest of the parsing in csharp bot
This commit is contained in:
parent
15ffd16c01
commit
479e0a59b5
35 changed files with 242 additions and 409 deletions
|
|
@ -144,11 +144,11 @@ public class ServerConfig
|
|||
await ctx.Reply($"{Emojis.Success} Proxy logging channel set to <#{channel.Id}>.");
|
||||
}
|
||||
|
||||
public async Task ClearLogChannel(Context ctx)
|
||||
public async Task ClearLogChannel(Context ctx, bool confirmYes)
|
||||
{
|
||||
await ctx.CheckGuildContext().CheckAuthorPermission(PermissionSet.ManageGuild, "Manage Server");
|
||||
|
||||
if (!await ctx.ConfirmClear("the server log channel"))
|
||||
if (!await ctx.ConfirmClear("the server log channel", confirmYes))
|
||||
return;
|
||||
|
||||
await ctx.Repository.UpdateGuild(ctx.Guild.Id, new GuildPatch { LogChannel = null });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue