Merge pull request #23 from Kwoth/dev
More updates to stream notifications
This commit is contained in:
commit
97510b94dd
@ -13,7 +13,9 @@
|
||||
}
|
||||
|
||||
public override int GetHashCode() =>
|
||||
ChannelId.GetHashCode() ^ Username.GetHashCode();
|
||||
ChannelId.GetHashCode() ^
|
||||
Username.GetHashCode() ^
|
||||
Type.GetHashCode();
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
@ -21,7 +23,9 @@
|
||||
if (fs == null)
|
||||
return false;
|
||||
|
||||
return fs.ChannelId == ChannelId && fs.Username.ToLowerInvariant().Trim() == Username.ToLowerInvariant().Trim();
|
||||
return fs.ChannelId == ChannelId &&
|
||||
fs.Username.ToLowerInvariant().Trim() == Username.ToLowerInvariant().Trim() &&
|
||||
fs.Type == Type;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -156,8 +156,8 @@ namespace NadekoBot.Extensions
|
||||
return list.ToArray();
|
||||
}
|
||||
|
||||
public static Task<IUserMessage> EmbedAsync(this IMessageChannel ch, Discord.API.Embed embed)
|
||||
=> ch.SendMessageAsync("", embed: embed);
|
||||
public static Task<IUserMessage> EmbedAsync(this IMessageChannel ch, Discord.API.Embed embed, string msg = "")
|
||||
=> ch.SendMessageAsync(msg, embed: embed);
|
||||
|
||||
public static Task<IUserMessage> SendErrorAsync(this IMessageChannel ch, string error, string title = null, string url = null)
|
||||
=> ch.SendMessageAsync("", embed: new Embed() { Description = error, Title = title, Url = url, Color = NadekoBot.ErrorColor });
|
||||
|
Loading…
Reference in New Issue
Block a user