Skip to content

Commit

Permalink
Removes useless IMentionable on IVoiceChannel
Browse files Browse the repository at this point in the history
  • Loading branch information
gehongyan committed Feb 21, 2024
1 parent d24d0d9 commit 7fa3027
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion src/Kook.Net.Core/Entities/Channels/IVoiceChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Kook;
/// <summary>
/// Represents a generic voice channel in a guild.
/// </summary>
public interface IVoiceChannel : INestedChannel, IAudioChannel, IMentionable
public interface IVoiceChannel : INestedChannel, IAudioChannel
{
/// <summary>
/// Gets the voice quality that the clients in this voice channel are requested to use.
Expand Down
6 changes: 0 additions & 6 deletions src/Kook.Net.Rest/Entities/Channels/RestVoiceChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ public class RestVoiceChannel : RestGuildChannel, IVoiceChannel, IRestAudioChann
/// <inheritdoc />
public bool? IsPermissionSynced { get; private set; }

/// <inheritdoc />
public string KMarkdownMention => MentionUtils.KMarkdownMentionChannel(Id);

/// <inheritdoc />
public string PlainTextMention => MentionUtils.PlainTextMentionChannel(Id);

internal RestVoiceChannel(BaseKookClient kook, IGuild guild, ulong id)
: base(kook, guild, id, ChannelType.Voice)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ public ICategoryChannel Category
/// <inheritdoc />
public bool? IsPermissionSynced { get; private set; }

/// <inheritdoc />
public string KMarkdownMention => MentionUtils.KMarkdownMentionChannel(Id);

/// <inheritdoc />
public string PlainTextMention => MentionUtils.PlainTextMentionChannel(Id);

/// <inheritdoc />
public VoiceQuality? VoiceQuality { get; private set; }

Expand Down

0 comments on commit 7fa3027

Please sign in to comment.