This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Channel | |
function channel(args) { | |
if (!args) return false; | |
if (args.startsWith('<#') && args.endsWith('>')) { | |
args = args.slice(2, -1); | |
return client.channels.cache.get(args); | |
} else { | |
if (!client.channels.cache.get(args)) return false; | |
return client.channels.cache.get(args) |