Table of Contents

Method GetRoleAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

GetRoleAsync()

Gets the DiscordRole that is affected by this overwrite.

public Task<DiscordRole> GetRoleAsync()

Returns

Task<DiscordRole>

The DiscordRole that is affected by this overwrite

Exceptions

NotFoundException

Thrown when the role does not exist.

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.