discordia-slash
discordia-slash copied to clipboard
Discordia application commands extension
A believe there is a missing **not** in discordia-slash -> util -> tools.lua line 236.
whenever a slash command option is optional and not provided, it returns this error: ``` attempt to index local 'args' (a nil value) ``` this is my code: ```lua local...
https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-structure Uses default_permission instead of default_member_permissions and there's no function to use/set the one that isn't being deprecated (default_member_permissions)
Without these, it error's when the required value is not nil, now it will error when they are nil.
https://github.com/GitSparTV/discordia-slash/blob/master/libs/client/Client.lua#L268-L303 if the user defines a `interactionCreate` before the use of `Client:useApplicationCommands`, their event listener will run first, possibly interfering with the library's code. The solution to this would be...
https://github.com/GitSparTV/discordia-slash/blob/master/libs/client/Client.lua#L68-L76 the `payload` parameter is never used, nor is it ever needed, the `id` parameter is being used as the `payload` parameter, the signature creates confusion since there is no...