Method CanJoinVoiceChannel
| Improve this Doc View SourceCanJoinVoiceChannel(IDiscordGuildMember, DiscordGuild, DiscordGuildVoiceChannel, int?)
Returns whether this guild member can join a given voice channel.
Declaration
public static bool CanJoinVoiceChannel(this IDiscordGuildMember member, DiscordGuild guild, DiscordGuildVoiceChannel voiceChannel, int? usersInVoiceChannel = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IDiscordGuildMember | member | |
| DiscordGuild | guild | The guild the member is in. |
| DiscordGuildVoiceChannel | voiceChannel | The voice channel to check if the member can join. |
| int? | usersInVoiceChannel | The number of users currently in the |
Returns
| Type | Description |
|---|---|
| bool |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Thrown if |
| ArgumentNullException | Thrown if |