only allow channels from given guild
This commit is contained in:
parent
8452f0360b
commit
77ec8f8785
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user