fixed problem regarding config variable names
This commit is contained in:
@@ -54,13 +54,13 @@ module.exports = {
|
||||
}
|
||||
|
||||
|
||||
fetch(`${config.panel.url}/api/client/servers/${serverid}/command`,{
|
||||
fetch(`${mainconfig.panel.url}/api/client/servers/${serverid}/command`,{
|
||||
"method": "POST",
|
||||
"headers": {
|
||||
"Accept": "application/json",
|
||||
"Content-Type": "application/json",
|
||||
"Authorization": `Bearer ${await commands.get("profile_handler").getKey(interactionObject)}`,
|
||||
'User-Agent': `${config.panel.useragent}`,
|
||||
'User-Agent': `${mainconfig.panel.useragent}`,
|
||||
},
|
||||
"body": JSON.stringify({
|
||||
"command": `${command}`
|
||||
|
||||
Reference in New Issue
Block a user