Formatting

This commit is contained in:
2025-06-23 22:38:54 -04:00
parent 328a9ed5b7
commit 708a5364a9

View File

@ -16,10 +16,10 @@ Client:on('ready', function()
end) end)
local function RunCallback(Callback, Interaction, Command, Args) local function RunCallback(Callback, Interaction, Command, Args)
local Success, Return = pcall(Callback, Interaction, Command, Args) local Success, Return = pcall(Callback, Interaction, Command, Args)
if not Success then if not Success then
Interaction:reply('Error encountered when trying to run command: '..tostring(Return), true) Interaction:reply('Error encountered when trying to run command: ' .. tostring(Return), true)
end end
end end
Client:on('slashCommand', function(Interaction, Command, Args) Client:on('slashCommand', function(Interaction, Command, Args)
@ -43,4 +43,4 @@ Client:on('userCommand', function(Interaction, Command, Member)
end end
end) end)
Client:run('Bot '..Token) Client:run('Bot ' .. Token)