Method ListJoinedPrivateArchivedThreadsAsync
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
ListJoinedPrivateArchivedThreadsAsync(DateTimeOffset?, int)
Gets the private and archived threads that the current member has joined in this channel.
public Task<ThreadQueryResult> ListJoinedPrivateArchivedThreadsAsync(DateTimeOffset? before = null, int limit = 0)
Parameters
before
DateTimeOffset?limit
int
Returns
- Task<ThreadQueryResult>
A ThreadQueryResult containing the threads for this query and if an other call will yield more threads.
Exceptions
- UnauthorizedException
Thrown when the client does not have the ReadMessageHistory permission.
- NotFoundException
Thrown when the channel does not exist.
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.