only allow channels from given guild

This commit is contained in:
Erik 2022-07-28 22:03:03 +03:00
parent 8452f0360b
commit 77ec8f8785
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -346,7 +346,7 @@ class Resolver {
const match = resolveable.match(id);
const [, ch] = match;
const channel = await this.client.channels.fetch(ch).catch((e) => { }); //eslint-disable-line no-empty, no-empty-function, no-unused-vars
const channel = await CM.fetch(ch).catch((e) => { }); //eslint-disable-line no-empty, no-empty-function, no-unused-vars
if (channel && filter(channel)) resolved.push(channel);
} else if (name.test(resolveable)) {