public async Task ClearReservationsAsync(string serverStr = null) { if (Context.IsPrivate) { await ReplyAsync("***This command can not be used in a DM***"); return; } if ((Context.User as SocketGuildUser).Roles.Contains(_dataServices.ModRole)) { if (serverStr == null) { await _levelTesting.ClearServerReservations(); } else { await _levelTesting.ClearServerReservations(serverStr); } await ReplyAsync("", false, _levelTesting.DisplayServerReservations()); } else { await _dataServices.ChannelLog($"{Context.User} is trying to clear reservations without the right permissions!"); await ReplyAsync("```You cannot use this command with your current permission level!```"); } }
public async Task ShowReservationsAsync(string serverStr = null) { if (Context.IsPrivate) { await ReplyAsync("***This command can not be used in a DM***"); return; } await ReplyAsync("", false, _levelTesting.DisplayServerReservations()); }