MessageParamTypes
interface in meocord/interface Since 4.1.0
interface MessageParamTypesWhat each param type in a message pattern gives the handler, by the name a pattern uses for it.
Read it to see what {amount:int} or {target:member} gives, and augment it with the types your app adds in
@MeoCord({ messages: { types } }), so their handlers are typed.
Members
string
string: stringA word, or "quoted words". The type of a param that names none.
int
int: numberA whole number, such as 50 or -3.
number
number: numberA number, such as 2.5.
bool
bool: booleanyes, no, true, false, on or off.
duration
duration: numberA length of time such as 10m, 2h30m or 7d, in milliseconds.
member
member: GuildMemberA member of the message's server, by mention or ID.
user
user: UserA user, by mention or ID.
role
role: RoleA role of the message's server, by mention, ID or name.
channel
channel: GuildBasedChannelA channel of the message's server, by mention or ID.