mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
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:
co-authored by
LTS20050703
parent
5bafe9a52e
commit
5a4fef855e
@@ -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[
|
||||
|
||||
Reference in New Issue
Block a user