Table of Contents

Method CurrentMemberIsHigherThan

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

CurrentMemberIsHigherThan(DiscordMember)

Checks whether the current member's top role is higher than another member's top role in the role hierarchy.

public bool CurrentMemberIsHigherThan(DiscordMember member)

Parameters

member DiscordMember

The member to compare against.

Returns

bool

True if the current member's top role is higher; otherwise, false.

Exceptions

InvalidOperationException

Thrown if the current member is not available.

ArgumentException

Thrown if the provided member does not belong to this guild.

CurrentMemberIsHigherThan(DiscordRole)

Checks whether the current member's top role is higher than a role in the role hierarchy.

public bool CurrentMemberIsHigherThan(DiscordRole role)

Parameters

role DiscordRole

The role to compare against.

Returns

bool

True if the current member's top role is higher; otherwise, false.

Exceptions

InvalidOperationException

Thrown if the current member is not available.

ArgumentException

Thrown if the provided role does not belong to this guild.