Types are primarily used when defining arguments - they specify what type the argument requires.
Let’s say you have a kill command that requires a Player argument:
@Register()class KillCommand { @Command({ name: "kill", description: "Kills a player", arguments: [ { name: "player", description: "Player to kill", type: CenturionType.Player, // Specify the name of the type here }, ], }) kill(ctx: CommandContext, player: Player) { const humanoid = player.Character?.FindFirstChildOfClass("Humanoid"); if (humanoid === undefined) { ctx.error(`${player.Name} does not have a Humanoid`); return; } humanoid.Health = 0; ctx.reply(`Successfully killed ${player.Name}`); }}