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

    Function MessageCommand

    • Example Usage

      @MessageCommand({ name: "ping", description: "pong!" })
      async ping(ctx: Message, strp: string) {
      await ctx.reply("pong!");
      }

      Note: If syntax highlight looks broken, blame your IDE. You may look at harunon.js to see this in action

      Parameters

      Returns (
          cog: MessageModule,
          key: string,
          desc:
              | TypedPropertyDescriptor<
                  (message: Message, args: string) => Promise<void>,
              >
              | TypedPropertyDescriptor<PartialCocoaMessageFunction>,
      ) => void