“Argumenty discord.js” Kod odpowiedzi

Jak zdefiniować ARG przy użyciu paramu discord.js

const prefix = "!";
const args = message.content.substring(prefix.length).split(" ")
Lively Ladybird

Argumenty discord.js

//Seperate Arguments
let seperateArgs = args[0]; //0 being the first argument
//Input "hello world"
//Output "hello"

//Full Arguments
let fullArgs = args.slice(0).join(' ');
//Input "hello world"
//Output "hello world"
HeyItsDeveloperRhys

Odpowiedzi podobne do “Argumenty discord.js”

Pytania podobne do “Argumenty discord.js”

Więcej pokrewnych odpowiedzi na “Argumenty discord.js” w JavaScript

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu