slight changes
This commit is contained in:
@ -182,7 +182,7 @@ namespace NadekoBot.Modules.Administration
|
||||
await role.Edit(color: new Color(red, green, blue));
|
||||
await e.Channel.SendMessage($"Role {role.Name}'s color has been changed.");
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (Exception)
|
||||
{
|
||||
await e.Channel.SendMessage("Error occured, most likely invalid parameters or insufficient permissions.");
|
||||
}
|
||||
|
@ -37,7 +37,6 @@ namespace NadekoBot.Classes.ClashOfClans
|
||||
{
|
||||
private static TimeSpan callExpire => new TimeSpan(2, 0, 0);
|
||||
|
||||
private CommandEventArgs e;
|
||||
public string EnemyClan { get; }
|
||||
public int Size { get; }
|
||||
|
||||
@ -89,7 +88,9 @@ namespace NadekoBot.Classes.ClashOfClans
|
||||
{
|
||||
b.ResetTime();
|
||||
}
|
||||
#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
|
||||
Task.Run(async () => await ClearArray()).ConfigureAwait(false);
|
||||
#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
|
||||
await Task.Delay(new TimeSpan(24, 0, 0), endTokenSource.Token);
|
||||
}
|
||||
catch { }
|
||||
|
Reference in New Issue
Block a user