Skip to content

Commit

Permalink
refactor!: Drop explicit implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
VelvetToroyashi committed Nov 3, 2024
1 parent 0bda8d2 commit 1830265
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,4 @@ public interface IMessageUpdate : IMessage, IGatewayEvent
/// without requiring bots to keep member state in memory.
/// </summary>
Optional<IPartialGuildMember> Member { get; }

/// <summary>
/// Gets a list of users mentioned in the message.
/// </summary>
new IReadOnlyList<IUserMention> Mentions { get; }

/// <inheritdoc/>
IReadOnlyList<IUser> IMessage.Mentions => this.Mentions;

/// <inheritdoc/>
Optional<IReadOnlyList<IUser>> IPartialMessage.Mentions => this.Mentions.AsOptional().Map<IReadOnlyList<IUser>>(u => u);
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public record MessageUpdate
(
Optional<Snowflake> GuildID,
Optional<IPartialGuildMember> Member,
IReadOnlyList<IUserMention> Mentions,
IReadOnlyList<IUser> Mentions,
Snowflake ID,
Snowflake ChannelID,
IUser Author,
Expand Down

0 comments on commit 1830265

Please sign in to comment.