Skip to content

Instantly share code, notes, and snippets.

View RemiixInc's full-sized avatar

Kieran RemiixInc

View GitHub Profile
@RemiixInc
RemiixInc / mentionparser.js
Last active April 17, 2021 02:00
Helper function for allowing mentions and ids discord.js
// 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)