Method GetRole
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
GetRole(ulong)
Gets a role from this guild by its ID.
public DiscordRole GetRole(ulong id)
Parameters
id
ulongID of the role to get.
Returns
- DiscordRole
Requested role.
Exceptions
- ServerErrorException
Thrown when Discord is unable to process the request.