Closed z3n01d closed 3 years ago
I don't know what your code is doing here.
do print(client:slashCommand ... )
, second argument tells the error
I don't know what your code is doing here. do
print(client:slashCommand ... )
, second argument tells the error
It just simply replies "yes" to interaction.
That is not related to the issue. Tell me what issue discordia istelling you
That is not related to the issue. Tell me what issue discordia istelling you
That print(client:slashCommand ... )
just shows Id and then crashes bot
Can't help until you tell me the issue discordia is telling you.
local commandSlash, err = client:slashCommand({
name = fileName,
description = commandModule.desc,
options = commandModule.options,
callback = function(ia, params, cmd)
ia:reply("yes")
--commandModule.execute(client, ia, params)
end
})
print(commandSlash, err)
print(commandSlash:publish())
So, when I tried to reply to interaction, this showed up :
This is my code :