This commit is contained in:
Dragon Fire
2020-12-03 15:01:20 -05:00
parent ebabd3ec75
commit 7c46eeac27
+1 -1
View File
@@ -20,7 +20,7 @@ module.exports = class PhoneBlockCommand extends Command {
});
}
run(msg, { query }) {
async run(msg, { query }) {
const channels = this.client.channels.cache.filter(channel => {
const search = query.toLowerCase();
return channel.guild && (channel.name.includes(search) || channel.id === search);