Skip to content
GitHub

meocord generate

Also meocord g

Generate components

Usage

Shell
meocord generate [options] [command]

Example

npx meocord generate controller button Greeting
bunx meocord generate controller button Greeting
pnpm exec meocord generate controller button Greeting
yarn meocord generate controller button Greeting

meocord generate controller

Also meocord generate co

Generate a controller component

Usage

Shell
meocord generate controller [options] <type> <name>

Example

npx meocord generate controller button Greeting
bunx meocord generate controller button Greeting
pnpm exec meocord generate controller button Greeting
yarn meocord generate controller button Greeting

Arguments

ArgumentDescription
<type>Type of the controller (e.g., button, context-menu, etc.) One of button, modal-submit, select-menu, user-select-menu, role-select-menu, mentionable-select-menu, channel-select-menu, reaction, message, slash, autocomplete, context-menu, primary-entry-point.
<name>Name of the controller

Options

OptionDescription
--messageFor a context-menu controller: a message context menu command, rather than a user one

meocord generate service

Also meocord generate s

Generate a service component

Usage

Shell
meocord generate service [options] <name>

Example

npx meocord generate service Greeting
bunx meocord generate service Greeting
pnpm exec meocord generate service Greeting
yarn meocord generate service Greeting

Arguments

ArgumentDescription
<name>Name of the service.

meocord generate guard

Also meocord generate gu

Generate a guard component

Usage

Shell
meocord generate guard [options] <name>

Example

npx meocord generate guard Greeting
bunx meocord generate guard Greeting
pnpm exec meocord generate guard Greeting
yarn meocord generate guard Greeting

Arguments

ArgumentDescription
<name>Name of the guard.

meocord generate interceptor

Also meocord generate i

Generate an interceptor component

Usage

Shell
meocord generate interceptor [options] <name>

Example

npx meocord generate interceptor Greeting
bunx meocord generate interceptor Greeting
pnpm exec meocord generate interceptor Greeting
yarn meocord generate interceptor Greeting

Arguments

ArgumentDescription
<name>Name of the interceptor.

meocord generate filter

Also meocord generate f

Generate an exception filter component

Usage

Shell
meocord generate filter [options] <name>

Example

npx meocord generate filter Greeting
bunx meocord generate filter Greeting
pnpm exec meocord generate filter Greeting
yarn meocord generate filter Greeting

Arguments

ArgumentDescription
<name>Name of the exception filter.

meocord generate pipe

Also meocord generate pi

Generate a pipe component

Usage

Shell
meocord generate pipe [options] <name>

Example

npx meocord generate pipe Greeting
bunx meocord generate pipe Greeting
pnpm exec meocord generate pipe Greeting
yarn meocord generate pipe Greeting

Arguments

ArgumentDescription
<name>Name of the pipe.

meocord generate observer

Also meocord generate ob

Generate a dispatch observer component

Usage

Shell
meocord generate observer [options] <name>

Example

npx meocord generate observer Greeting
bunx meocord generate observer Greeting
pnpm exec meocord generate observer Greeting
yarn meocord generate observer Greeting

Arguments

ArgumentDescription
<name>Name of the observer.