#Best way to create a collection of bot commands

10 messages · Page 1 of 1 (latest)

wanton lindenBOT

We highly recommend you extend the Client structure properly instead of just attaching custom properties like .commands to the regular discord.js Client instance.
• Using typescript, you might want to consider casting or augmenting the module type

sick salmon

@dusky turret

dusky turret

Don’t ping me. There’s literally only you and me in this post atm

sick salmon
reef hatch
sick salmon

im using js, not ts, so not sure if i can do it

reef hatch
/**
  * @type Collection<string, CustomDefinedType>
  */
command = new Collection();