mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-08 15:19:14 +02:00
Fix
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user