@@ -58,7 +58,7 @@ internal async Task HandleDispatchAsync(GatewayPayload payload)
5858 ulong uid ;
5959 DiscordStageInstance stg = default ;
6060 DiscordIntegration itg = default ;
61- DiscordThreadChannel trd = default ;
61+ DiscordXThreadChannel trd = default ;
6262 DiscordThreadChannelMember trdm = default ;
6363 DiscordScheduledEvent gse = default ;
6464 TransportUser usr = default ;
@@ -511,23 +511,23 @@ internal async Task HandleDispatchAsync(GatewayPayload payload)
511511#region Thread
512512
513513 case "thread_create" :
514- trd = DiscordJson . DeserializeObject < DiscordThreadChannel > ( payloadString , this ) ;
514+ trd = DiscordJson . DeserializeObject < DiscordXThreadChannel > ( payloadString , this ) ;
515515 await this . OnThreadCreateEventAsync ( trd ) . ConfigureAwait ( false ) ;
516516 break ;
517517
518518 case "thread_update" :
519- trd = DiscordJson . DeserializeObject < DiscordThreadChannel > ( payloadString , this ) ;
519+ trd = DiscordJson . DeserializeObject < DiscordXThreadChannel > ( payloadString , this ) ;
520520 await this . OnThreadUpdateEventAsync ( trd ) . ConfigureAwait ( false ) ;
521521 break ;
522522
523523 case "thread_delete" :
524- trd = DiscordJson . DeserializeObject < DiscordThreadChannel > ( payloadString , this ) ;
524+ trd = DiscordJson . DeserializeObject < DiscordXThreadChannel > ( payloadString , this ) ;
525525 await this . OnThreadDeleteEventAsync ( trd ) . ConfigureAwait ( false ) ;
526526 break ;
527527
528528 case "thread_list_sync" :
529529 gid = ( ulong ) dat [ "guild_id" ] ! ;
530- var trds = DiscordJson . DeserializeIEnumerableObject < IReadOnlyList < DiscordThreadChannel > > ( dat [ "threads" ] ! . ToString ( ) , this ) ;
530+ var trds = DiscordJson . DeserializeIEnumerableObject < IReadOnlyList < DiscordXThreadChannel > > ( dat [ "threads" ] ! . ToString ( ) , this ) ;
531531 var trms = DiscordJson . DeserializeIEnumerableObject < IReadOnlyList < DiscordThreadChannelMember > > ( dat [ "members" ] ! . ToString ( ) , this ) ;
532532 await this . OnThreadListSyncEventAsync ( this . GuildsInternal [ gid ] , dat [ "channel_ids" ] ! . ToObject < IReadOnlyList < ulong ? > > ( ) ! , trds , trms ) . ConfigureAwait ( false ) ;
533533 break ;
@@ -3258,7 +3258,7 @@ internal async Task OnStageInstanceDeleteEventAsync(DiscordStageInstance stage)
32583258 /// Handles the thread create event.
32593259 /// </summary>
32603260 /// <param name="thread">The created thread.</param>
3261- internal async Task OnThreadCreateEventAsync ( DiscordThreadChannel thread )
3261+ internal async Task OnThreadCreateEventAsync ( DiscordXThreadChannel thread )
32623262 {
32633263 thread . Discord = this ;
32643264 this . InternalGetCachedGuild ( thread . GuildId ) . ThreadsInternal . AddOrUpdate ( thread . Id , thread , ( oldThread , newThread ) => newThread ) ;
@@ -3275,7 +3275,7 @@ internal async Task OnThreadCreateEventAsync(DiscordThreadChannel thread)
32753275 /// Handles the thread update event.
32763276 /// </summary>
32773277 /// <param name="thread">The updated thread.</param>
3278- internal async Task OnThreadUpdateEventAsync ( DiscordThreadChannel thread )
3278+ internal async Task OnThreadUpdateEventAsync ( DiscordXThreadChannel thread )
32793279 {
32803280 if ( thread == null )
32813281 return ;
@@ -3284,7 +3284,7 @@ internal async Task OnThreadUpdateEventAsync(DiscordThreadChannel thread)
32843284 var guild = thread . Guild ;
32853285
32863286 var threadNew = this . InternalGetCachedThread ( thread . Id ) ;
3287- DiscordThreadChannel threadOld = null ;
3287+ DiscordXThreadChannel threadOld = null ;
32883288 ThreadUpdateEventArgs updateEvent ;
32893289
32903290 if ( threadNew != null )
@@ -3364,7 +3364,7 @@ internal async Task OnThreadUpdateEventAsync(DiscordThreadChannel thread)
33643364 /// Handles the thread delete event.
33653365 /// </summary>
33663366 /// <param name="thread">The deleted thread.</param>
3367- internal async Task OnThreadDeleteEventAsync ( DiscordThreadChannel thread )
3367+ internal async Task OnThreadDeleteEventAsync ( DiscordXThreadChannel thread )
33683368 {
33693369 if ( thread == null )
33703370 return ;
@@ -3391,7 +3391,7 @@ internal async Task OnThreadDeleteEventAsync(DiscordThreadChannel thread)
33913391 /// <param name="channelIds">The synced channel ids.</param>
33923392 /// <param name="threads">The synced threads.</param>
33933393 /// <param name="members">The synced thread members.</param>
3394- internal async Task OnThreadListSyncEventAsync ( DiscordGuild guild , IReadOnlyList < ulong ? > channelIds , IReadOnlyList < DiscordThreadChannel > threads , IReadOnlyList < DiscordThreadChannelMember > members )
3394+ internal async Task OnThreadListSyncEventAsync ( DiscordGuild guild , IReadOnlyList < ulong ? > channelIds , IReadOnlyList < DiscordXThreadChannel > threads , IReadOnlyList < DiscordThreadChannelMember > members )
33953395 {
33963396 guild . Discord = this ;
33973397
0 commit comments