@@ -18,17 +18,17 @@ public struct ChannelPermissions
1818 /// <summary>
1919 /// Gets a <see cref="ChannelPermissions"/> that grants all permissions for text channels.
2020 /// </summary>
21- public static readonly ChannelPermissions Text = new ( 0b10_110001_001111_110010_110011_111101_111111_111101_010001 ) ;
21+ public static readonly ChannelPermissions Text = new ( 0b110_110001_001111_110010_110011_111101_111111_111101_010001 ) ;
2222
2323 /// <summary>
2424 /// Gets a <see cref="ChannelPermissions"/> that grants all permissions for voice channels.
2525 /// </summary>
26- public static readonly ChannelPermissions Voice = new ( 0b11_110001_001010_001010_110011_111101_111111_111101_010001 ) ;
26+ public static readonly ChannelPermissions Voice = new ( 0b111_110001_001010_001010_110011_111101_111111_111101_010001 ) ;
2727
2828 /// <summary>
2929 /// Gets a <see cref="ChannelPermissions"/> that grants all permissions for stage channels.
3030 /// </summary>
31- public static readonly ChannelPermissions Stage = new ( 0b10_110000_000010_001110_010001_010101_111111_111001_010001 ) ;
31+ public static readonly ChannelPermissions Stage = new ( 0b110_110000_000010_001110_010001_010101_111111_111001_010001 ) ;
3232
3333 /// <summary>
3434 /// Gets a <see cref="ChannelPermissions"/> that grants all permissions for category channels.
@@ -154,6 +154,8 @@ public static ChannelPermissions All(IChannel channel)
154154 public bool SetVoiceChannelStatus => Permissions . GetValue ( RawValue , ChannelPermission . SetVoiceChannelStatus ) ;
155155 /// <summary> If <see langword="true"/>, a user can send polls.</summary>
156156 public bool SendPolls => Permissions . GetValue ( RawValue , ChannelPermission . SendPolls ) ;
157+ /// <summary> If <see langword="true"/>, a user-installed application can send public responses.</summary>
158+ public bool UserExternalApps => Permissions . GetValue ( RawValue , ChannelPermission . UseExternalApps ) ;
157159
158160 /// <summary> Creates a new <see cref="ChannelPermissions"/> with the provided packed value.</summary>
159161 public ChannelPermissions ( ulong rawValue ) { RawValue = rawValue ; }
@@ -194,7 +196,8 @@ private ChannelPermissions(ulong initialValue,
194196 bool ? sendVoiceMessages = null ,
195197 bool ? useClydeAI = null ,
196198 bool ? setVoiceChannelStatus = null ,
197- bool ? sendPolls = null )
199+ bool ? sendPolls = null ,
200+ bool ? useExternalApps = null )
198201 {
199202 ulong value = initialValue ;
200203
@@ -234,6 +237,7 @@ private ChannelPermissions(ulong initialValue,
234237 Permissions . SetValue ( ref value , useClydeAI , ChannelPermission . UseClydeAI ) ;
235238 Permissions . SetValue ( ref value , setVoiceChannelStatus , ChannelPermission . SetVoiceChannelStatus ) ;
236239 Permissions . SetValue ( ref value , sendPolls , ChannelPermission . SendPolls ) ;
240+ Permissions . SetValue ( ref value , useExternalApps , ChannelPermission . UseExternalApps ) ;
237241
238242 RawValue = value ;
239243 }
@@ -275,12 +279,13 @@ public ChannelPermissions(
275279 bool sendVoiceMessages = false ,
276280 bool useClydeAI = false ,
277281 bool setVoiceChannelStatus = false ,
278- bool sendPolls = false )
282+ bool sendPolls = false ,
283+ bool useExternalApps = false )
279284 : this ( 0 , createInstantInvite , manageChannel , addReactions , viewChannel , sendMessages , sendTTSMessages , manageMessages ,
280285 embedLinks , attachFiles , readMessageHistory , mentionEveryone , useExternalEmojis , connect ,
281286 speak , muteMembers , deafenMembers , moveMembers , useVoiceActivation , prioritySpeaker , stream , manageRoles , manageWebhooks ,
282287 useApplicationCommands , requestToSpeak , manageThreads , createPublicThreads , createPrivateThreads , useExternalStickers , sendMessagesInThreads ,
283- startEmbeddedActivities , useSoundboard , createEvents , sendVoiceMessages , useClydeAI , setVoiceChannelStatus , sendPolls )
288+ startEmbeddedActivities , useSoundboard , createEvents , sendVoiceMessages , useClydeAI , setVoiceChannelStatus , sendPolls , useExternalApps )
284289 { }
285290
286291 /// <summary> Creates a new <see cref="ChannelPermissions"/> from this one, changing the provided non-null permissions.</summary>
@@ -320,7 +325,8 @@ public ChannelPermissions Modify(
320325 bool ? sendVoiceMessages = null ,
321326 bool ? useClydeAI = null ,
322327 bool ? setVoiceChannelStatus = null ,
323- bool ? sendPolls = null )
328+ bool ? sendPolls = null ,
329+ bool ? useExternalApps = null )
324330 => new ChannelPermissions ( RawValue ,
325331 createInstantInvite ,
326332 manageChannel ,
@@ -357,7 +363,8 @@ public ChannelPermissions Modify(
357363 sendVoiceMessages ,
358364 useClydeAI ,
359365 setVoiceChannelStatus ,
360- sendPolls ) ;
366+ sendPolls ,
367+ useExternalApps ) ;
361368
362369 public bool Has ( ChannelPermission permission ) => Permissions . GetValue ( RawValue , permission ) ;
363370
0 commit comments