Fixed warning

This commit is contained in:
Kwoth 2017-03-14 21:02:31 +01:00
parent ac671a7f0c
commit da60df7e51
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ namespace NadekoBot.Modules.CustomReactions
public void ClearStats() => ReactionStats.Clear(); public void ClearStats() => ReactionStats.Clear();
public static async Task<CustomReaction> TryGetCustomReaction(SocketUserMessage umsg) public static CustomReaction TryGetCustomReaction(SocketUserMessage umsg)
{ {
var channel = umsg.Channel as SocketTextChannel; var channel = umsg.Channel as SocketTextChannel;
if (channel == null) if (channel == null)

View File

@ -246,7 +246,7 @@ namespace NadekoBot.Modules.Utility
await Context.Channel.SendConfirmAsync( await Context.Channel.SendConfirmAsync(
"🔁 " + GetText("repeater", "🔁 " + GetText("repeater",
Format.Bold(rep.Repeater.Message), Format.Bold(((IGuildUser)Context.User).GuildPermissions.MentionEveryone ? rep.Repeater.Message : rep.Repeater.Message.SanitizeMentions()),
Format.Bold(rep.Repeater.Interval.Days.ToString()), Format.Bold(rep.Repeater.Interval.Days.ToString()),
Format.Bold(rep.Repeater.Interval.Hours.ToString()), Format.Bold(rep.Repeater.Interval.Hours.ToString()),
Format.Bold(rep.Repeater.Interval.Minutes.ToString()))).ConfigureAwait(false); Format.Bold(rep.Repeater.Interval.Minutes.ToString()))).ConfigureAwait(false);