Functioncorev0.13.0
See also:or
and<Gates>(
gates: Gates
): Gate<
IntersectRequired<Gates> & GateContextBase,
JoinNames<Gates, " & ">
>import { PermissionFlagsBits } from 'discord.js';
\@Gated(and(GuildOnly(), RequirePermissions([PermissionFlagsBits.BanMembers])))
\@SlashRoute('ban')
class BanHandler extends SlashHandler<'ban'> {
async execute() {
// ...
}
}Gates
The tuple of two or more gates, run left to right.
GatesThe tuple of two or more gates, run left to right.
gates
gates: GatesThe gates to run in order, all refused on the first refusal.