Slash Commands
Typed options, subcommand, choices ve autocomplete schema desteği.
Command Builder
const command = new SlashCommandBuilder()
.setName('timeout')
.setDescription('Bir üyeye timeout uygular')
.setDefaultMemberPermissions(PermissionFlagsBits.TimeoutMembers)
.addUserOption(o => o.setName('user').setDescription('Kullanıcı').setRequired(true))
.addIntegerOption(o => o.setName('minutes').setDescription('Dakika').setRequired(true).setMinValue(1).setMaxValue(10080))
.addStringOption(o => o.setName('reason').setDescription('Sebep').setMaxLength(300));
await client.registerCommands([command]);subcommandsubcommand_groupstringintegernumberbooleanuserchannelrolementionableattachment