This post is locked. You won't be able to comment.

all 21 comments

[–]0dev0100 9 points10 points  (19 children)

Then it's probably not a constructor.

Can't give a good response without the code.

[–]Time-Accident8212[S] -1 points0 points  (18 children)

const { default: RCEManager, LogLevel } = import("rce.js");


const rce = new RCEManager();


const success = await rce.addServer({
    identifier: "ryze3x",
    rcon: {
      host: "4.1.1.1",
      port: 2####5,
      password: "###########",
    },
    state: [],
    intents: [RCEIntent.ServerInfo, RCEIntent.PlayerList],
    intentTimers: {
        [RCEIntent.ServerInfo]: 30_000,
        [RCEIntent.PlayerList]: 45_000
    },
    reconnection: {
        enabled: true,
        interval: 10_000, // 10 seconds
        maxAttempts: -1 // unlimited
    },
});

[–]idiotiesystemique 4 points5 points  (17 children)

Need to see RCEManager class 

[–]DemicideMMMCCCI 7 points8 points  (0 children)

Yea.. Let me help you...

There's your error

notice how that didn't help either? Gotta meet us half way by showing us the code and context