Method RemoveMemberAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
RemoveMemberAsync(ulong, CancellationToken)
Removes a member from this thread.
public Task RemoveMemberAsync(ulong memberId, CancellationToken cancellationToken = default)
Parameters
memberIdulongThe member id to be removed.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
Exceptions
- NotFoundException
Thrown when the thread does not exist.
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.
RemoveMemberAsync(DiscordMember, CancellationToken)
Removes a member from this thread. Only applicable to private threads.
public Task RemoveMemberAsync(DiscordMember member, CancellationToken cancellationToken = default)
Parameters
memberDiscordMemberThe member to be removed.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
Exceptions
- NotFoundException
Thrown when the thread does not exist.
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.