Fixed a crash

This commit is contained in:
Yessiest 2021-12-02 19:35:13 +04:00
parent dd8e294732
commit af92f63d8f
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ local droleadd = command("droleadd",{
},
exec = function(msg,args,opts)
table.insert(config.default_roles,args[1].id)
msg:reply("Added role "..role.name.." to default roles list")
msg:reply("Added role "..args[1].name.." to default roles list")
end,
})
local droledel = command("droledel",{
@ -33,7 +33,7 @@ local droledel = command("droledel",{
table.remove(config.default_roles,k)
end
end
msg:reply("Removed role "..role.name.." from default roles list")
msg:reply("Removed role "..args[1].name.." from default roles list")
end
})
local drolelist = command("drolelist", {