feature: IVoiceChannel implements IMentionable (#1896)

This commit is contained in:
Nikon
2021-08-23 02:00:18 +05:00
committed by GitHub
parent c200861585
commit 3395700720
4 changed files with 12 additions and 2 deletions

View File

@@ -21,6 +21,9 @@ namespace Discord.Rest
/// <inheritdoc />
public ulong? CategoryId { get; private set; }
/// <inheritdoc />
public string Mention => MentionUtils.MentionChannel(Id);
internal RestVoiceChannel(BaseDiscordClient discord, IGuild guild, ulong id)
: base(discord, guild, id)
{
@@ -60,7 +63,7 @@ namespace Discord.Rest
/// <inheritdoc />
public Task SyncPermissionsAsync(RequestOptions options = null)
=> ChannelHelper.SyncPermissionsAsync(this, Discord, options);
//Invites
/// <inheritdoc />
public async Task<IInviteMetadata> CreateInviteAsync(int? maxAge = 86400, int? maxUses = null, bool isTemporary = false, bool isUnique = false, RequestOptions options = null)