other-js-ts

4043 threads · Page 30 of 81

why? 28 messages
1081589071526240296 1081590299358412983
How would I go by this? 2 messages
mystic belfry Hello, I have a string option with a choice and the value of that choice is a discord server ID. I want to use mongoose ...
1081590299358412983
PlexTickets addon (check what i said) 12 messages
shadow oriole hey anyone can help me how can i add to my custom addon the "message checker" function? It's PlexTickets addon but the o...
Could not find any Visual Studio installation to use 65 messages
deep badger I am getting this error when I am trying to install the @discordjs/opus package, any fix?
How to calculate permissions given by discord in Javascript? 7 messages
royal escarp I need to see if a user have the ADMINISTRATOR permission in a server when they login via Oauth2. I use the ``/users/@me...
Fetching MongoDB data takes forever? 22 messages
trail junco ```ts this.container.logger.info(5); if (!interaction.inCachedGuild()) return; await interaction.deferReply({ ephemera...
1081589071526240296 1081590299358412983
i want to change a variable inside an async 13 messages
odd lotus ```js let variable = true console.log(variable) // returns true collector.on("collect", async (message) => { variab...
1081589071526240296
Map out nested objects in an array to be used in a d.js embed 25 messages
radiant dove Im trying to display a users logs and in my user schema i have them being logged as an array, i want to map out this arr...
1081589071526240296
Removing Multiple \n from a string 2 messages
rare terrace I want to remove all `\n` from a string and replace them with only one. IE. In text that looks like this ``` Hello ...
1081589071526240296 1081589253575823411
Firebase Question 2 messages
1081590299358412983
ENum Values into Union for Array Validation 12 messages
zenith onyx Hello, I want to use an ENum, and dynamically use that to validate Array contents, as well as other things, e.g: ```js e...
1081589253575823411
Listening to Expressjs response through djs 2 messages
cosmic merlin so im trying to recieve data from an expressjs server i have running locally for now. Discord.js ```js const serverEmit...
Canvas Image not showing up 9 messages
keen geode So I'm using `canvas@2.11.2` & `node v18.4.2` I use it to create an image to welcome new members Today I opened it after...
1081589071526240296
Is it possible to do REST requests in the browser? 43 messages
plush compass I saw a file called `web.ts` in the [`@discordjs/rest`](https://github.com/discordjs/discord.js/tree/main/packages/rest/...
1081590447216017570 1081589253575823411
background on canvas chart.js has no color 3 messages
1081589071526240296
TypeError: Cannot read properties of undefined (reading 'toLowerCase') 26 messages
vernal nova TypeError: Cannot read properties of undefined (reading 'toLowerCase') here https://sourceb.in/Ie5rdPwhVM
1081589071526240296
Puppeteer 13 messages
mossy pelican Hello I am currently trying to find a way to get a players roblox status from Roblox. I am trying to use puppetter to do...
1081589071526240296 1081590447216017570
TypeError: Cannot read properties of undefined (reading 'toLowerCase') 1 messages
vernal nova TypeError: Cannot read properties of undefined (reading 'toLowerCase') here https://sourceb.in/Ie5rdPwhVM
function arguments/parameters error 36 messages
fickle rock in general, for some reason my function takes the values of the second argument if the first one was not specified, the ...
discord api | 400 error. embed 1 messages
fickle rock ```js const { Client, EmbedBuilder } = require("../pkg/export"); const bot = new Client("", 131071); bot.on("ready", d ...
1081589071526240296
Sequelize: Aliases and ManyToMany(?) associations 16 messages
onyx dove I'm running a database for my bot with the classes `Match` and `Team`. Each match object should be associated with two t...
i need help 13 messages
tiny dawn Recently i wanted to create a discord bot without any coding skills. i asked chat gpt and i ended up havin this code: ...
1081589071526240296
Discloud hosting 2 messages
west gust I wanted to ask if the discloud.config will have all of my secret keys or just thoes mentioned (attached picture) and th...
1081589071526240296 1081590447216017570 1081590299358412983
array not saving 15 messages
willow stone let msgComponents = msg.components; msgComponents.forEach((component) => { component.components.forEach((component2...
Can't for the life of me push to Github/Git 7 messages
tame olive I was attempting to make my project open source (for the people I work with to send to), however, git console keeps tell...
1081589071526240296
Cannot find module error 8 messages
obtuse ginkgo ```PS C:\Users\Shadow\Desktop\luminous-bot> node order.js node:internal/modules/cjs/loader:1145 throw err; ^ Error:...
Does Discord document anywhere what restrictions a required modal field value has? 6 messages
slow pond I'm currently refactoring some code with modals, and I'm not sure what to test and not test for when fetching a `require...
1081589071526240296
[ REGEX CODE ] 5 messages
broken blade ```js const patternn = /<:.+?:(\d+)> • ` ` • `(\w+)` <:.+?:(\d+)> `G•(\d+) ` \*\*(\w+)\*\* • \*(\w+)\*/; //...
Can a (malicious) user access bot commands through some sort of web API? 25 messages
rugged pike Not a strictly discordjs question but related to discord bot API in general. Essentially the question is, if the bot is...
Multiple Events in one file 3 messages
weak crystal Im using typescript, I want to know if its possible to have and export multiple events from one file
Sequelize sudden error 3 messages
lone pond My bot was running without any problems since few months and now I got this error from Sequelize. I did not change a thi...
wh Api error 400. | Discord api. 13 messages
fickle rock ```js const { api } = require("../api/api"); class Channel { #token; constructor(token, messageId, channelId) { ...
1081589071526240296
Cooldown package 19 messages
Trouble installing SQLITE3 on Pi 2 10 messages
rain turret The progress bar gets to the end and then it kind of just freezes. If it gets interrupted it yells at me. It's stopped a...
1081590299358412983
Error: Server responded with 404 6 messages
harsh cradle can you advise me as to what this error could be and how I could solve it?
1081589071526240296
Discord RPC Setup 13 messages
wispy hinge I'm trying to make a localhost website for a twitch widget you run locally on your machine. For the live of me, I can't...
1081590447216017570 1081589253575823411
punycode 9 messages
austere wharf ```(node:15028) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative ins...
Guild Constant Efficency 3 messages
obsidian sparrow From my discord bot, I have a set of constants that can be updated if needed saved through MongoDB. I established a clie...
1081589253575823411 1081590299358412983
get channel object, discord api 2 messages
fickle rock how can I implement replying to messages? What parameters are needed, what is the URL link?.
Error: Failed to POST data: 400 - Bad Request | discord api. 1 messages
fickle rock ```js async reply(message, content = "", embeds = null, options = {}) { try { if (!message) { throw ne...
Bot late respond like 5m to 1hr in 1 or 2 channel only and if i restart bot then it work perfectly 1 messages
rough anchor i have an issue with my bot sometme in some one or two channel bot reply after 5min and sometime it reply after 1hr for ...
MYSQL2/Promise not reusing connections. 1 messages
rare terrace I'm having an issue with MySql2 seemingly not reusing connections. Once the connectionLimit is reached, the code just fr...
1081589071526240296 1081590299358412983
Problems using string.toUpperCase(); and comparing 5 messages
weak mural Hi. I am trying to make a discord bot that can read messages off a google spreadsheet and post information in a discord ...
1081589071526240296
Discord 401 error 34 messages
sleek oak Trying to upload a GIF to bot avatar but get 401 ```js const fs = require('fs'); const token = process.env.TOKEN; asyn...
1081589071526240296
Hopefully easy JSON question 26 messages
smoky verge Trying to set up a JSON for my bot. Did I miss some punctuation somewhere? The file is supposed to have each key corresp...
1081589071526240296 1081590299358412983
Link ""Dashboard"" to Bot 7 messages
surreal elk I've created a Discord bot. Now I'd like to set up a dashboard, I'd like to use Discord JS. It's possible to interact wi...
1081589071526240296 1081590447216017570
node-canva portability 9 messages
shut thistle Hi I don’t know if you can help me but I have recently bought a droplet on DigitalOcean (under Ubuntu) where I host my d...
1081589071526240296
file not appearing 6 messages
boreal creek ```js fs.writeFile("id.txt",await w.send({content:"test",username:"server"}).id,{flag:"w"})``` the file id.txt isnt app...
not allowed channel topic 7 messages
glossy spire ```js topic[CHANNEL_TOPIC_INVALID]: Channel topic contains at least one word that is not allowed. ``` This error is retu...
1081589071526240296
help 11 messages
flint hornet im creating my own bot and i typed node bot.js and it says module not found