How add arguments to slash command?

How add arguments to slash command and read it?
await bot.application.commands.create({name: 'test', description: 'Test command'}).catch(console.error);

And
bot.on(Events.InteractionCreate, async (interaction) => { Print arguments... };
image.png
Was this page helpful?