#Slashcommand for maxLength
30 messages · Page 1 of 1 (latest)
I don't know what's the problem, is it available ?
how are you deploying your commands?
like that:
const { REST, Routes } = require('discord.js');
const rest = new REST({ version: '10' }).setToken('<token>');
const commands = [array of slashcommands].map(command => command.applicationCommandBody);
await rest.put(Routes.applicationGuildCommands('client id', g.id), { body: commands });
Slash commands deploy correctly but only maxLength is not working
then you should be using snake_case (e.g. max_length), since that's what discord expects
I'm assuming this is after redeploying with max_length instead
could you log the result of rest.put to confirm the option is not updated?
Did u test to see if this is working on slashcommand ?
or at the very least your discord client
I mean I can right now, but the answer is probably "I am not having issues with this at the moment"
I swear, that's not me, everything working well, expect this
I am not having issues with this at the moment
again though, your issue has nothing to do with your code
What do u mean not my code?
if you are able to execute the command with a string longer than 100 characters, this is an issue with your discord client or discord itself
I mean that your command deployed properly
the response to your put request proves it
(If it is) How it can be my discord client ?
¯_(ツ)_/¯
I suppose first I should confirm, you are attempting to execute the command with that as the option value right?
not just typing it in?
Y i can write press on my key enter with +100 characters length