hold on what

This commit is contained in:
tommy 2024-09-27 17:52:22 -04:00
parent 48384ef229
commit 0777a6bf11
Signed by: tommy
GPG Key ID: 56B522AB2EF2263A

View File

@ -18,6 +18,9 @@ end)
local function RunCallback(Callback, Interaction, Command, Args)
local Success, Return = pcall(Callback, Interaction, Command, Args)
if not Success then
if type(Return) == "table" then
table.foreach(Return, print)
end
Interaction:reply('Error encountered when trying to run command: '..tostring(Return), true)
end
end