How to use the .addChoices command

.addStringOption(option =>
            option.setName('game')
                .setDescription('game')
                .setRequired(true)
                .addChoices(
                    { name: '1', value: '1' },
                    { name: '2', value: '2' },
                    { name: '3', value: '3' },
                    { name: '4', value: '4' }
                )),

How do I write a code that uses number 1 based on the code above?
Was this page helpful?