Functioncorev0.4.1
See also:the @Gated decorator from your transport package
RequireRole(
roleId: string,
options?: RequireRoleOptions
): Gate<GateContextBase, "RequireRole">roleId
roleId: stringThe role snowflake the caller must hold.
options?
options?: RequireRoleOptionsOverride each refusal, the outside-guild one with notInGuild and the missing-role one with missingRole.