@@ -138,22 +138,6 @@ public Task<RestThreadChannel> CreatePostWithFilesAsync(string title, IEnumerabl
138138 MessageComponent components = null , ISticker [ ] stickers = null , Embed [ ] embeds = null , MessageFlags flags = MessageFlags . None , ForumTag [ ] tags = null )
139139 => ThreadHelper . CreatePostAsync ( this , Discord , title , attachments , archiveDuration , slowmode , text , embed , options , allowedMentions , components , stickers , embeds , flags , tags ? . Select ( tag => tag . Id ) . ToArray ( ) ) ;
140140
141- /// <inheritdoc cref="ITextChannel.GetActiveThreadsAsync(RequestOptions)"/>
142- public Task < IReadOnlyCollection < RestThreadChannel > > GetActiveThreadsAsync ( RequestOptions options = null )
143- => ThreadHelper . GetActiveThreadsAsync ( Guild , Id , Discord , options ) ;
144-
145- /// <inheritdoc cref="IForumChannel.GetJoinedPrivateArchivedThreadsAsync(int?, DateTimeOffset?, RequestOptions)"/>
146- public Task < IReadOnlyCollection < RestThreadChannel > > GetJoinedPrivateArchivedThreadsAsync ( int ? limit = null , DateTimeOffset ? before = null , RequestOptions options = null )
147- => ThreadHelper . GetJoinedPrivateArchivedThreadsAsync ( this , Discord , limit , before , options ) ;
148-
149- /// <inheritdoc cref="IForumChannel.GetPrivateArchivedThreadsAsync(int?, DateTimeOffset?, RequestOptions)"/>
150- public Task < IReadOnlyCollection < RestThreadChannel > > GetPrivateArchivedThreadsAsync ( int ? limit = null , DateTimeOffset ? before = null , RequestOptions options = null )
151- => ThreadHelper . GetPrivateArchivedThreadsAsync ( this , Discord , limit , before , options ) ;
152-
153- /// <inheritdoc cref="IForumChannel.GetPublicArchivedThreadsAsync(int?, DateTimeOffset?, RequestOptions)"/>
154- public Task < IReadOnlyCollection < RestThreadChannel > > GetPublicArchivedThreadsAsync ( int ? limit = null , DateTimeOffset ? before = null , RequestOptions options = null )
155- => ThreadHelper . GetPublicArchivedThreadsAsync ( this , Discord , limit , before , options ) ;
156-
157141 /// <inheritdoc cref="IIntegrationChannel.CreateWebhookAsync"/>
158142 public Task < RestWebhook > CreateWebhookAsync ( string name , Stream avatar = null , RequestOptions options = null )
159143 => ChannelHelper . CreateWebhookAsync ( this , Discord , name , avatar , options ) ;
@@ -167,14 +151,6 @@ public Task<IReadOnlyCollection<RestWebhook>> GetWebhooksAsync(RequestOptions op
167151 => ChannelHelper . GetWebhooksAsync ( this , Discord , options ) ;
168152
169153 #region IForumChannel
170- async Task < IReadOnlyCollection < IThreadChannel > > IForumChannel . GetActiveThreadsAsync ( RequestOptions options )
171- => await GetActiveThreadsAsync ( options ) . ConfigureAwait ( false ) ;
172- async Task < IReadOnlyCollection < IThreadChannel > > IForumChannel . GetPublicArchivedThreadsAsync ( int ? limit , DateTimeOffset ? before , RequestOptions options )
173- => await GetPublicArchivedThreadsAsync ( limit , before , options ) . ConfigureAwait ( false ) ;
174- async Task < IReadOnlyCollection < IThreadChannel > > IForumChannel . GetPrivateArchivedThreadsAsync ( int ? limit , DateTimeOffset ? before , RequestOptions options )
175- => await GetPrivateArchivedThreadsAsync ( limit , before , options ) . ConfigureAwait ( false ) ;
176- async Task < IReadOnlyCollection < IThreadChannel > > IForumChannel . GetJoinedPrivateArchivedThreadsAsync ( int ? limit , DateTimeOffset ? before , RequestOptions options )
177- => await GetJoinedPrivateArchivedThreadsAsync ( limit , before , options ) . ConfigureAwait ( false ) ;
178154 async Task < IThreadChannel > IForumChannel . CreatePostAsync ( string title , ThreadArchiveDuration archiveDuration , int ? slowmode , string text , Embed embed , RequestOptions options , AllowedMentions allowedMentions , MessageComponent components , ISticker [ ] stickers , Embed [ ] embeds , MessageFlags flags , ForumTag [ ] tags )
179155 => await CreatePostAsync ( title , archiveDuration , slowmode , text , embed , options , allowedMentions , components , stickers , embeds , flags , tags ) . ConfigureAwait ( false ) ;
180156 async Task < IThreadChannel > IForumChannel . CreatePostWithFileAsync ( string title , string filePath , ThreadArchiveDuration archiveDuration , int ? slowmode , string text , Embed embed , RequestOptions options , bool isSpoiler , AllowedMentions allowedMentions , MessageComponent components , ISticker [ ] stickers , Embed [ ] embeds , MessageFlags flags , ForumTag [ ] tags )
@@ -230,5 +206,32 @@ async Task<IReadOnlyCollection<IWebhook>> IIntegrationChannel.GetWebhooksAsync(R
230206
231207 #endregion
232208
209+ #region IThreadContainerChannel
210+ /// <inheritdoc cref="IThreadContainerChannel.GetActiveThreadsAsync(RequestOptions)"/>
211+ public Task < IReadOnlyCollection < RestThreadChannel > > GetActiveThreadsAsync ( RequestOptions options = null )
212+ => ThreadHelper . GetActiveThreadsAsync ( Guild , Id , Discord , options ) ;
213+
214+ /// <inheritdoc cref="IThreadContainerChannel.GetJoinedPrivateArchivedThreadsAsync(int?, DateTimeOffset?, RequestOptions)"/>
215+ public Task < IReadOnlyCollection < RestThreadChannel > > GetJoinedPrivateArchivedThreadsAsync ( int ? limit = null , DateTimeOffset ? before = null , RequestOptions options = null )
216+ => ThreadHelper . GetJoinedPrivateArchivedThreadsAsync ( this , Discord , limit , before , options ) ;
217+
218+ /// <inheritdoc cref="IThreadContainerChannel.GetPrivateArchivedThreadsAsync(int?, DateTimeOffset?, RequestOptions)"/>
219+ public Task < IReadOnlyCollection < RestThreadChannel > > GetPrivateArchivedThreadsAsync ( int ? limit = null , DateTimeOffset ? before = null , RequestOptions options = null )
220+ => ThreadHelper . GetPrivateArchivedThreadsAsync ( this , Discord , limit , before , options ) ;
221+
222+ /// <inheritdoc cref="IThreadContainerChannel.GetPublicArchivedThreadsAsync(int?, DateTimeOffset?, RequestOptions)"/>
223+ public Task < IReadOnlyCollection < RestThreadChannel > > GetPublicArchivedThreadsAsync ( int ? limit = null , DateTimeOffset ? before = null , RequestOptions options = null )
224+ => ThreadHelper . GetPublicArchivedThreadsAsync ( this , Discord , limit , before , options ) ;
225+
226+ async Task < IReadOnlyCollection < IThreadChannel > > IThreadContainerChannel . GetActiveThreadsAsync ( RequestOptions options )
227+ => await GetActiveThreadsAsync ( options ) . ConfigureAwait ( false ) ;
228+ async Task < IReadOnlyCollection < IThreadChannel > > IThreadContainerChannel . GetPublicArchivedThreadsAsync ( int ? limit , DateTimeOffset ? before , RequestOptions options )
229+ => await GetPublicArchivedThreadsAsync ( limit , before , options ) . ConfigureAwait ( false ) ;
230+ async Task < IReadOnlyCollection < IThreadChannel > > IThreadContainerChannel . GetPrivateArchivedThreadsAsync ( int ? limit , DateTimeOffset ? before , RequestOptions options )
231+ => await GetPrivateArchivedThreadsAsync ( limit , before , options ) . ConfigureAwait ( false ) ;
232+ async Task < IReadOnlyCollection < IThreadChannel > > IThreadContainerChannel . GetJoinedPrivateArchivedThreadsAsync ( int ? limit , DateTimeOffset ? before , RequestOptions options )
233+ => await GetJoinedPrivateArchivedThreadsAsync ( limit , before , options ) . ConfigureAwait ( false ) ;
234+ #endregion
235+
233236 }
234237}
0 commit comments