Yet another function for shorten the redundant codes.
Usage:
const ephemeral = getEphemeral(ctx); Copy
const ephemeral = getEphemeral(ctx);
Will expand to:
ctx.options.getBoolean("ephemeral") ?? false; Copy
ctx.options.getBoolean("ephemeral") ?? false;
Note: If you have override the Ephemeral() name's field, pass that as the second argument to correctly retrieve parameters!
Ephemeral()
Optional
Yet another function for shorten the redundant codes.
Usage:
Will expand to:
Note: If you have override the
Ephemeral()
name's field, pass that as the second argument to correctly retrieve parameters!