@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
cap
canBotDoInChannel
Function Signature
function canBotDoInChannel(channelId: string, ctx: Primitives.TemplateContext, botNeededPerms: typesext.U64Convertibles) end
Arguments
channelId
ctx
botNeededPerms
canModeratorAffectTarget
Function Signature
function canModeratorAffectTarget(ctx: Primitives.TemplateContext, userinfo: userinfo.UserInfo, targetId: string, cap: string) end
Arguments
ctx
userinfo
targetId
cap
extractUserIdFromInteraction
Function Signature
function extractUserIdFromInteraction(interaction: apitypes.InteractionObject) -> string end
Arguments
interaction
Returns
ret1
Last updated on