Method RoleIsHigherThan
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
RoleIsHigherThan(DiscordRole, DiscordRole)
Checks whether a role is higher than another role in the role hierarchy.
public bool RoleIsHigherThan(DiscordRole role, DiscordRole other)
Parameters
roleDiscordRoleThe role to compare.
otherDiscordRoleThe role to compare against.
Returns
- bool
True if the first role is higher; otherwise, false.
Exceptions
- ArgumentException
Thrown if either role does not belong to this guild.