other-js-ts

4043 threads · Page 35 of 81

Discord OAUTH2 7 messages
drifting pewter I am trying to access users linked accounts. I am testing it out with local host however it just results in a error wher...
1081589071526240296 1081590447216017570
Run .JS discord bot on Ubuntu VPS 24/7 7 messages
wispy ermine Hi. Today I wrote a code for Discord bot using .JS so it can assign a role after you type a command. It works on my desk...
1081589071526240296
Reloading a class on a new file after bot already initialized. 2 messages
crisp solstice Hey y'all, my bot I am running runs off of a bunch of different managers and classes that hold different functions for e...
1081589071526240296 1081589253575823411
Matching the start of a message with a string in a database (MongoDB) 55 messages
wooden lotus This is taken from <#986520997006032896>, as I was told the question was better suited to here. So I don't have to retyp...
1081590299358412983
websocket help | Discord api 7 messages
digital badge ```js const https = require("https"); const WebSocket = require('ws'); class Client { constructor(token, options) { ...
hi guys i just need to know how to format a number with commas according to the western methodlike 7 messages
distant ledge the title is kinda self explanatory
1081589071526240296
Request from Mongoose 4 messages
rough pebble this is my current code! I get all data and then I check if `client.guild.cache.has(guildId)` I want to know how can I d...
1081590299358412983
translator 5 messages
wraith quest is there a way to implement google translate or some other translation functionality in discord.js
function in variable? 26 messages
wraith quest is there any way i can do it like this so i dont have to write the same function twice?
how does it write to const here 8 messages
wraith quest could someone please help me understand why it's able to write to this const variable? shouldn't it be var/let?
Continuing on with conversion of event listeners to dedicated functions 3 messages
zealous river Continuing onward from this post: https://discord.com/channels/222078108977594368/824411059443204127/120460049217355779...
Help with pdf2pic error. 1 messages
1081589071526240296
patching with an api 13 messages
heavy garnet hi
1081589071526240296
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...
1081589071526240296 1081589253575823411
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 15 messages
1081589071526240296
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...
1081589253575823411
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....
1081589071526240296 1081589253575823411
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 ...
1081590447216017570
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 ...
1081589253575823411
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 ...
1081589253575823411
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 ...
1081589071526240296
deleted. 2 messages
1081589253575823411
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 ...
1081589071526240296 1081590299358412983
Caching with ES6 modules 1 messages
proper lance Hey, so I want to reload a module into my code which would have already been imported on boot, however it looks like the...
1081589071526240296
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?
1081589071526240296
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...
1081589071526240296
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...
1081590299358412983
AWS s3 bucket 1 messages
topaz quest Hey. I'm trying to create a command where the user uploads a picture and then the picture is stored in s3 bucket. But I...
1081589071526240296
tryna make a bot with tensorflow.js 11 messages
red loom I'm getting this error
1081589071526240296
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 4 messages
1081590299358412983
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...
1081589071526240296 1081589253575823411 1081590299358412983
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...
1081589071526240296
Length to ms 1 messages
mossy kayak Anybody know the package that converts length (`1h, 10m, 50s`) to milliseconds?
1081589071526240296
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...
1081589071526240296 1081590299358412983
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