crycode-de / ioBroker.discord

ioBroker Discord bot integration
MIT License
6 stars 4 forks source link

Custom command options #65

Closed HumanBot000 closed 3 months ago

HumanBot000 commented 3 months ago

It is possible to add custom command options for slash commands. I would really love to see this, for example to select a iobroker device.

crycode-de commented 3 months ago

Options for custom commands of type text can be defined as json string in the corresponding state discord.0.slashCommands.<command-name>.option-<option-name>.choices. Example json: [{"name": "Hof", "value": "hof"}, {"name": "Garten", "value": "garten"}]

Since you have already closed this issue, I think you have already figured it out yourself. 🙂