Answers for "discordjs command args"

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
0

how to define args using param discord.js

const prefix = "!";
const args = message.content.substring(prefix.length).split(" ")
Posted by: Guest on February-25-2021

Browse Popular Code Answers by Language