Exemple #1
0
 public bool Equals(Message other)
 {
     return(Id.Equals(other.Id) && ChannelId.Equals(other.ChannelId) && GuildId.Equals(other.GuildId) &&
            Author.Equals(other.Author) && Member.Equals(other.Member) && Content == other.Content &&
            Timestamp.Equals(other.Timestamp) && Nullable.Equals(EditedTimestamp, other.EditedTimestamp) &&
            TTS == other.TTS && MentionEveryone == other.MentionEveryone && Equals(Mentions, other.Mentions) &&
            Equals(MentionRoles, other.MentionRoles) && Equals(MentionChannels, other.MentionChannels) &&
            Equals(Attachments, other.Attachments) && Equals(Embeds, other.Embeds) &&
            Equals(Reactions, other.Reactions) && Pinned == other.Pinned &&
            Nullable.Equals(WebhookId, other.WebhookId) && Type == other.Type &&
            Nullable.Equals(Activity, other.Activity) && Nullable.Equals(Application, other.Application) &&
            Nullable.Equals(MessageReference, other.MessageReference) && Flags == other.Flags);
 }
Exemple #2
0
 public bool Equals(ChannelMention other)
 {
     return(Id.Equals(other.Id) && GuildId.Equals(other.GuildId) && Type == other.Type && Name == other.Name);
 }