|
@@ -8,7 +8,7 @@ namespace Discord |
|
|
public struct ChannelPermissions |
|
|
public struct ChannelPermissions |
|
|
{ |
|
|
{ |
|
|
/// <summary> Gets a blank <see cref="ChannelPermissions"/> that grants no permissions. </summary> |
|
|
/// <summary> Gets a blank <see cref="ChannelPermissions"/> that grants no permissions. </summary> |
|
|
/// <returns>A <see cref="ChannelPermissions"/> structure that does not contain any set permissions.</returns> |
|
|
|
|
|
|
|
|
/// <returns> A <see cref="ChannelPermissions"/> structure that does not contain any set permissions. </returns> |
|
|
public static readonly ChannelPermissions None = new ChannelPermissions(); |
|
|
public static readonly ChannelPermissions None = new ChannelPermissions(); |
|
|
/// <summary> Gets a <see cref="ChannelPermissions"/> that grants all permissions for text channels. </summary> |
|
|
/// <summary> Gets a <see cref="ChannelPermissions"/> that grants all permissions for text channels. </summary> |
|
|
public static readonly ChannelPermissions Text = new ChannelPermissions(0b01100_0000000_1111111110001_010001); |
|
|
public static readonly ChannelPermissions Text = new ChannelPermissions(0b01100_0000000_1111111110001_010001); |
|
@@ -80,7 +80,7 @@ namespace Discord |
|
|
public bool MoveMembers => Permissions.GetValue(RawValue, ChannelPermission.MoveMembers); |
|
|
public bool MoveMembers => Permissions.GetValue(RawValue, ChannelPermission.MoveMembers); |
|
|
/// <summary> If <c>true</c>, a user may use voice-activity-detection rather than push-to-talk. </summary> |
|
|
/// <summary> If <c>true</c>, a user may use voice-activity-detection rather than push-to-talk. </summary> |
|
|
public bool UseVAD => Permissions.GetValue(RawValue, ChannelPermission.UseVAD); |
|
|
public bool UseVAD => Permissions.GetValue(RawValue, ChannelPermission.UseVAD); |
|
|
/// <summary> If True, a user may use priority speaker in a voice channel. </summary> |
|
|
|
|
|
|
|
|
/// <summary> If <c>true</c>, a user may use priority speaker in a voice channel. </summary> |
|
|
public bool PrioritySpeaker => Permissions.GetValue(RawValue, ChannelPermission.PrioritySpeaker); |
|
|
public bool PrioritySpeaker => Permissions.GetValue(RawValue, ChannelPermission.PrioritySpeaker); |
|
|
|
|
|
|
|
|
/// <summary> If <c>true</c>, a user may adjust role permissions. This also implictly grants all other permissions. </summary> |
|
|
/// <summary> If <c>true</c>, a user may adjust role permissions. This also implictly grants all other permissions. </summary> |
|
|