Refactor guild data storage (#13)
Co-authored-by: mctaylors <volkovvladislav8@gmail.com>
This commit is contained in:
parent
f0a6c8faff
commit
7b8888dae3
24 changed files with 941 additions and 661 deletions
|
@ -14,7 +14,7 @@ public sealed class UnbanCommand : ICommand {
|
|||
if (reason is not null) await UnbanUserAsync(cmd, id.Value, reason);
|
||||
}
|
||||
|
||||
public static async Task UnbanUserAsync(CommandProcessor cmd, ulong id, string reason) {
|
||||
private static async Task UnbanUserAsync(CommandProcessor cmd, ulong id, string reason) {
|
||||
var requestOptions = Utils.GetRequestOptions($"({cmd.Context.User}) {reason}");
|
||||
await cmd.Context.Guild.RemoveBanAsync(id, requestOptions);
|
||||
|
||||
|
|
Reference in a new issue