Table of Contents

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

role DiscordRole

The role to compare.

other DiscordRole

The 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.