Proxy delete channel tests (#2174)

* feat: delete channel tests

* fix: use new tests in ci

* Update testss/deps.ts

Co-authored-by: LTS20050703 <87189679+lts20050703@users.noreply.github.com>

Co-authored-by: LTS20050703 <87189679+lts20050703@users.noreply.github.com>
This commit is contained in:
Skillz4Killz
2022-05-08 09:57:06 -04:00
committed by GitHub
co-authored by LTS20050703
parent 5bafe9a52e
commit 5a4fef855e
12 changed files with 135 additions and 27 deletions
+2 -3
View File
@@ -62,9 +62,8 @@ fs.readdir("./src/events/", (err, files) => {
const eventFunction = require(`./src/events/${file}`);
if (eventFunction.disabled) return;
const event = eventFunction.event || file.split(".")[0];
const emitter = (typeof eventFunction.emitter === "string"
? client[eventFunction.emitter]
: eventFunction.emitter) || client;
const emitter =
(typeof eventFunction.emitter === "string" ? client[eventFunction.emitter] : eventFunction.emitter) || client;
const { once } = eventFunction;
try {
emitter[