Skip to content

Commit

Permalink
Bug fixed, fleet captains were unable to use !fp command
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanguard-Fx committed Sep 25, 2020
1 parent 3102f8c commit aaa6c08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Bot_NetCore/Commands/ModerationCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -299,14 +299,14 @@ await ctx.RespondAsync($"{Bot.BotSettings.OkEmoji} Успешно отобран
}

[Command("fleetpurge")]
[RequirePermissions(Permissions.KickMembers)]
[Priority(0)]
public async Task FleetPurge(CommandContext ctx, DiscordUser user, string duration = "1d", [RemainingText] string reason = "Не указана") //Блокирует возможность принять правила на время
{
//Проверка на модератора или капитана рейда
//Проверка на модератора
if (!Bot.IsModerator(ctx.Member))
{
await ctx.RespondAsync($"{Bot.BotSettings.ErrorEmoji} У вас нет доступа к этой команде!");
await ctx.RespondAsync($"{Bot.BotSettings.ErrorEmoji} У вас нет доступа к этой команде! \n" +
$"Возможно участник покинул сервер.");
return;
}

Expand Down

0 comments on commit aaa6c08

Please sign in to comment.