I’m attempting to make a bot but when I try to show the user a modal, I get the following error: ValidationError: Expected the value to be a string or number I’m not sure why this happens, but here is the code which seems to be causing it: Answer Discord.js error messages leave a lot to be desired, but the
Tag: discord.js
DiscordJSv14 Recording / Receiving Voice Audio
So I’m working on a Discord bot using JS and DiscordJSv14, and want the bot to use audio from a voice chat to send to another bot, some type of listen and snitch bot. So far I got the Bot’s connecting to the voice call but can’t get any of the packets to send to the other bot. Here’s some
Discord.js check if a user nickname contains Numbers and Letter, if yes add calculation to the number
I’m looking for a way to check if a discord users name contains numbers and certain letter, and if it does then apply a calculation to it. For example I have a command that right now checks if the user has anything in the nickname, this adds the additional number next to the previous one (if there is one), if
Unknown column ‘narozeni’ in ‘field list’ [closed]
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 3 months ago. Improve this question
I can’t edit a message from discord.js bot
I want to make a countdown timer that uses a command /timer minutes seconds where the user chooses how long the countdown will be. I want the bot to send the timer as a reply to the command which I’ve successfully done. However, I also want the message to update along with the timer. I can console.log the timer and
Updating variables with Discord.JS
I’m trying to work out how to update variables that are declared at runtime. In my code it’s a simple random number generator. It works but doesn’t update, i.e. if the slash command /rng is used, alpha never updates past the initial number it picked, so it just repeats the same number at each use of /rng and I understand
TypeError Option “role” is of type 8; expected 3
So I am making a role add and role remove command using slash command options. I have saved an argument called role which takes from the slash command option addRoleOption. Upon running the slash command and pointing in the role I am trying to add / remove from the user I have mentioned i get the error as shown below.
Get channels of category discord v14
i’m trying to get all channels and delete these channels of category in discord v14, but throw me an error: client.channels.cache.get(…).children.forEach is not a function Answer CategoryChannel.children is type CategoryChannelChildManager, which doesn’t have a forEach method, so you can’t call forEach on it. CategoryChannelChildManager.cache is type Collection<Snowflake, GuildChannel>, which does has a forEach method, so you can call forEach on
Discord.js: “Unknown Message” when trying to delete a message
This script is meant to send a message that’ll keep track of the process log of a Minecraft server, and as soon as it finishes loading, it should delete the message: but for some reason it just throws me an “Unknown message” error as soon as it gets to the line where it’s supposed to delete the message. I don’t
DiscordAPIError[50035]: Invalid Form Body, errors: { embeds: [Object]
So I am trying to get the lyrics of a song (which works), but because of the 4096 characters limit on discord I have to cut it into different pieces. However, when I try to send all of the messages it gives me the error: DiscordAPIError[50035]: Invalid Form Body This is the code that I am using: It also gives