cocoa-discord - v3.2.0
    Preparing search index...

    Function getEphemeral

    • Yet another function for shorten the redundant codes.

      Usage:

      const ephemeral = getEphemeral(ctx);
      

      Will expand to:

      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!

      Parameters

      • ctx: ChatInputCommandInteraction
      • Optionaloverride: string

      Returns boolean