LogoAntiRaid

@antiraid-ext/utils/modhierarchy

API reference for @antiraid-ext/utils/modhierarchy

@antiraid-ext/utils/modhierarchy

Functions

canModeratorDo

Function Signature
function canModeratorDo(userinfo: userinfo.UserInfo, cap: string) end

Arguments

userinfo

userinfo.UserInfo

cap

string

canBotDoInChannel

Function Signature
function canBotDoInChannel(channelId: string, ctx: Primitives.TemplateContext, botNeededPerms: typesext.U64Convertibles) end

Arguments

channelId

string

ctx

Primitives.TemplateContext

botNeededPerms

typesext.U64Convertibles

canModeratorAffectTarget

Function Signature
function canModeratorAffectTarget(ctx: Primitives.TemplateContext, userinfo: userinfo.UserInfo, targetId: string, cap: string) end

Arguments

ctx

Primitives.TemplateContext

userinfo

userinfo.UserInfo

targetId

string

cap

string

extractUserIdFromInteraction

Function Signature
function extractUserIdFromInteraction(interaction: apitypes.InteractionObject) -> string end

Arguments

interaction

apitypes.InteractionObject

Returns

ret1

string

Last updated on