mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-29 18:49:53 +03:00
every single file changed lulw
This commit is contained in:
parent
f30485dd71
commit
4d838e5af3
14 changed files with 825 additions and 511 deletions
|
@ -11,7 +11,7 @@ public class UnbanCommand : Command {
|
|||
public override async Task Run(SocketCommandContext context, string[] args) {
|
||||
var toUnban = await Utils.ParseUser(args[0]);
|
||||
if (context.Guild.GetBanAsync(toUnban.Id) == null)
|
||||
throw new Exception(Messages.UserNotBanned);
|
||||
throw new ApplicationException(Messages.UserNotBanned);
|
||||
UnbanUser(context.Guild, context.Channel as ITextChannel, context.Guild.GetUser(context.User.Id), toUnban,
|
||||
Utils.JoinString(args, 1));
|
||||
}
|
||||
|
@ -40,4 +40,4 @@ public class UnbanCommand : Command {
|
|||
public override string GetSummary() {
|
||||
return "Возвращает пользователя из бана";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue