Functionseedcordv0.13.0
OwnerOnly
Passes only for a user id listed in config.ownerIdsconfig.ownerIds, else refuses.
Agnostic, so it attaches to interaction and event handlers alike. With no ownerIdsownerIds configured it refuses every caller. Pass GateNoticeOptionsGateNoticeOptions to reword or replace the refusal.
See also:Gated
OwnerOnly(
options?: GateNoticeOptions
): Gate<GateContextBase, "OwnerOnly">OwnerOnly(
options?: GateNoticeOptions
): Gate<GateContextBase, "OwnerOnly">options?
options?: GateNoticeOptionsoptions?: GateNoticeOptionsReword the default refusal with messagemessage, or replace it with noticenotice.