Answers for "discord bot check if command has arguments"

1

define args discord

if (!message.content.startsWith(prefix) || message.author.bot) return;

const args = message.content.slice(prefix.length).trim().split(' ');
const command = args.shift().toLowerCase();
Posted by: Guest on December-20-2020

Code answers related to "discord bot check if command has arguments"

Browse Popular Code Answers by Language