other-js-ts

3634 threads · Page 32 of 73

Discord.js with typescript 5 messages
spice flume I was trying to make my discord bot using typescript and got these errors: 'property author doesn't exists on type Clien...
Node.js TypeScript
Accessing elements inside a returned sequelize object 4 messages
small acorn In my messageReactionAdd.js file I'm trying to just get the value of one of the properties in the returned object from m...
an invitation link that assigns roles 2 messages
high coral How can I assign roles to a user who comes to the server via invitation X and when he enters via invitation Y he will no...
String Format Treatement 11 messages
uneven marten ```js if (oldChannel.topic !== newChannel.topic) { const oldTopic = oldChannel.topic || ''; ...
functions 25 messages
wraith quest is there a way to use this without always specifying interaction? like can i just say reply(`message here`) and it will ...
path file invalid 14 messages
Node.js
not sure how to properly setup OAuth2 with NextAuth 4 messages
dusky wedge I've already added my callback link as a redirect in the Discord developer portal, but I'm still getting an invalid OAut...
TypeScript
i have this problem at my project db.get 15 messages
bulkDelete 2 messages
digital badge ```js module.exports = { name: "$clear", callback: async (context) => { const amount = context.argsCheck(1); ...
problem with import 3 messages
bold kiln i have a code which fires on connection with mongoDB, it uses the chalk module, ```ts import chalk from "chalk" module....
Node.js TypeScript
Spam bot response multiple times 6 messages
digital badge ```js module.exports = { name: "$message", callback: (context) => context.event.content, }; ``` ```js module.exports...
(Chrome Extension) Crop a screenshot to a certain element 11 messages
cunning egret I am making a chrome extension that takes a screenshot of a specific element, and I am using captureVisibleTab() to get ...
Browser
problem in the handler 7 messages
bold kiln hello, my ready event is not getting fired and this is maybe due ti sothing in the handler, this is the function which ...
TypeScript
Testing verified/sharding bot 5 messages
elfin pewter Does anyone have recommendations or best practices on how to test new features of a verified bot? I am trying to test th...
pnpm workspace monorepo 6 messages
lethal lantern anyone have experience using pnpm workspaces for a monorepo? i got everything working but when i edit something in the ...
TypeScript
discord API | Err 401 :( 18 messages
digital badge ```js ~/a $ node bot.js { message: '401: Unauthorized', code: 0 } Bot is ready undefined#undefined ``` Hey, I recently ...
Node.js
Class this null or undefined 52 messages
digital badge ```js /data/data/com.termux/files/home/bot/node_modules/@neisven/doublejs/src/classes/DClient.js:8 class DClient extends...
fonts not Registering on deployment server 7 messages
grim zenith So i am using node-canvas to draw a image showing profile of the user, and i used some custom fonts and put them in my ...
Node.js Database
PayPal api in Discord js 3 messages
robust pecan does anyone here know or have used the paypal rest api and can help me out with something? apparently, everything in san...
PHP + Discord.js session data 18 messages
grand totem Hi, code below, but first; Despite correctly setting session parameters and seeing them displayed correctly in the cons...
Discord.js's way of compiling for both ESM and CJS 11 messages
trail junco How is it done? Is there any tutorial for it?
Node.js
Usage of JSDoc 3 messages
modern musk I am trying to use in jsdoc with this code: https://sourceb.in/LARH7CyVMi But it didn't show the method but only the cla...
Node.js
Colored Text Image 3 messages
ionic ibex Does anyone have any advice or guidance on how I'd create an image that looks like this with my bot?
Weird integer error when trying to insert a new row into a db 8 messages
royal silo when i'm trying to insert a new row into my db, my DBMS errors saying `Out of range value for column 'discord_id' at row...
Database
tryna make a bot with tensorflow.js 11 messages
red loom I'm getting this error
Node.js
ERROR 7 messages
wicked mantle npm ERR! code ENOTEMPTY npm ERR! syscall rename npm ERR! path /home/container/node_modules/ajv npm ERR! dest /home/conta...
cant get data from table 3 messages
Database
Module not Found on local file 2 messages
valid birch Hey guys, So i am building a discord bot right now which connects to a mongo db database. I have followed the mongo db t...
Node.js TypeScript Database
Extend Class 16 messages
modern musk Now I have two files, one is defining the functions, and another one is extends of discord client Functions: https://sou...
Node.js
non-logical error 3 messages
royal silo basically, i have a constant called `result` that basically returns an empty array, i logged this in the console just to...
Mongoose 4 messages
balmy adder Error - ``` node:events:496 throw er; // Unhandled 'error' event ^ MongooseError: Model.findOne() no longe...
Node.js Database
MongoDB 3 messages
balmy adder ```C:\Users\12345678\Desktop\Основной БОТ\node_modules\mongodb\lib\cmap\connection.js:205 callback(new e...
Mongoose 4 messages
balmy adder Error - http://codebin.org/view/967cfe47
how to extract a value from a key:value pair inside of an object that's inside of an array 145 messages
royal silo basically, i'm running a database querry that returns an array of results as an array and an object inside of the array ...
Node.js
yo an someone help me with my code 5 messages
balmy walrus const { Client, Collection, Intents } = require('discord.js') const db = require('quick.db') const fs = require('fs') gl...
why my bot cannot ping everyone? 3 messages
shy lintel code: ```js return interaction.reply("@everyone", { allowedMentions: { parse: ["ever...
String error 28 messages
pastel isle https://pastes.io/mmbgalcmv6
Strange commands that are not in the bot code 27 messages
high coral Why do I see slash commands that are not in my code?
Discord auth and auth/callback from website 15 messages
grand totem Wassup, someone can help me figure out why this doesn't work? code below ```js app.get('/auth/discord', (req, res) => {...
Node.js Browser
https://discord.com/channels/222078108977594368/1202708177729093732 2 messages
outer tulip https://discord.com/channels/222078108977594368/1202708177729093732
Routes using express 9 messages
heady patio I am trying to create routes using express, where I define app.get to each route. In my case, I started with only have 2...
Node.js Browser
STAFF ONLY COMMAND 5 messages
Node.js Database
what's the best way to insert something into a mysql database? 14 messages
royal silo not a really complicated question, i have a slash command that requires some of the strings put in it to be sent to a my...
Node.js Database
I'm trying from so long but it keeps showing same error 24 messages
arctic ermine I created a reddit command in my bot which shows a random post from reddit using the fetch function but it keeps showing...
Node.js
How to solve this 9 messages
MongoDB 13 messages
balmy adder ``` TypeError: Cannot read properties of undefined (reading 'set') at C:\Users\12345678\Desktop\Основной БОТ\main.js...
Node.js Database
ReferenceError: interaction is not defined 3 messages
karmic ridge ReferenceError: interaction is not defined
Canvas says unsupported image format for png file 11 messages
keen geode the error ```js SetSource.call(img, src) ^ Error: Unsupported image type at setSource (C:\Users\LENOVO\...
Node.js
ReferenceError: interaction is not defined 12 messages
polar geyser This is the error message I get on my console.log, i really need your help, I can't do it at all.
Node.js
inserting values in a database with mysql2 4 messages
royal silo So I'm using [MySQL2](https://www.npmjs.com/package/mysql2) which is an npm package that allows you to connect to mysql ...
Node.js Database