use connection pool for mod status check
This commit is contained in:
parent
d42b939af8
commit
87d1582e01
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -183,7 +183,7 @@ pnslWebSocket.on('message', async (data) => {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (channel) {
|
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}!`);
|
if (!mods.includes(Config.Username)) return say(Config.Username, `I am not a moderator in channel ${channel}!`);
|
||||||
}
|
}
|
||||||
const data = await fetchList(listID);
|
const data = await fetchList(listID);
|
||||||
|
|
Loading…
Reference in a new issue