Table of Contents

Method ConvertToMember

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

ConvertToMember(DiscordGuild)

Returns the DiscordMember in the specified DiscordGuild

public Task<DiscordMember> ConvertToMember(DiscordGuild guild)

Parameters

guild DiscordGuild

The DiscordGuild to get this user on.

Returns

Task<DiscordMember>

The DiscordMember.

Exceptions

NotFoundException

Thrown when the user is not part of the guild.

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.