Method AddMemberAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
AddMemberAsync(ulong)
Adds a member to this thread.
public Task AddMemberAsync(ulong memberId)
Parameters
memberId
ulongThe member id to be added.
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.
AddMemberAsync(DiscordMember)
Adds a member to this thread.
public Task AddMemberAsync(DiscordMember member)
Parameters
member
DiscordMemberThe member to be added.
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.