Formatting
This commit is contained in:
10
src/main.lua
10
src/main.lua
@ -16,10 +16,10 @@ Client:on('ready', function()
|
||||
end)
|
||||
|
||||
local function RunCallback(Callback, Interaction, Command, Args)
|
||||
local Success, Return = pcall(Callback, Interaction, Command, Args)
|
||||
if not Success then
|
||||
Interaction:reply('Error encountered when trying to run command: '..tostring(Return), true)
|
||||
end
|
||||
local Success, Return = pcall(Callback, Interaction, Command, Args)
|
||||
if not Success then
|
||||
Interaction:reply('Error encountered when trying to run command: ' .. tostring(Return), true)
|
||||
end
|
||||
end
|
||||
|
||||
Client:on('slashCommand', function(Interaction, Command, Args)
|
||||
@ -43,4 +43,4 @@ Client:on('userCommand', function(Interaction, Command, Member)
|
||||
end
|
||||
end)
|
||||
|
||||
Client:run('Bot '..Token)
|
||||
Client:run('Bot ' .. Token)
|
||||
|
Reference in New Issue
Block a user