commands/census/main
/main command — registers a player’s primary character.
Creates a new Census record with status "Main", inserts the user
into the Dkp table if they’re new (via insertUser), and
assigns the “Probationary Member” role to first-time declarers.
Uses the shared declareData factory for its slash command definition.
Variables
Section titled “Variables”
constdata:SlashCommandOptionsOnlyBuilder
Defined in: commands/census/main.ts:23
Functions
Section titled “Functions”execute()
Section titled “execute()”execute(
interaction):Promise<InteractionResponse<boolean> |undefined>
Defined in: commands/census/main.ts:25
Parameters
Section titled “Parameters”interaction
Section titled “interaction”ChatInputCommandInteraction
Returns
Section titled “Returns”Promise<InteractionResponse<boolean> | undefined>