diff --git a/index.js b/index.js index d7dcbfc..f8a7535 100644 --- a/index.js +++ b/index.js @@ -183,7 +183,7 @@ pnslWebSocket.on('message', async (data) => { try { if (channel) { - const mods = await clients[0].getMods(channel); + const mods = await getConnection().getMods(channel); if (!mods.includes(Config.Username)) return say(Config.Username, `I am not a moderator in channel ${channel}!`); } const data = await fetchList(listID);