Method GetRoleAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
GetRoleAsync(ulong, CancellationToken)
Gets a role from this guild from the api by its ID.
public Task<DiscordRole> GetRoleAsync(ulong id, CancellationToken cancellationToken = default)
Parameters
idulongID of the role to get.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<DiscordRole>
Requested role.