other-js-ts

4043 threads · Page 28 of 81

How do you make it so you can register slash commands in a folder or the whole slash command folder 3 messages
lament cobalt ```js const arrayOfSlashCommands = [ //code for registering commands in a folder ]; ```
1081589071526240296
events are not updated 1 messages
olive bear they are simply removed and not added back ```js function removeEvents(client, dir) { const eventFiles = getAllEvent...
npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: not found: makenpm ERR! gyp ERR! stac 4 messages
edgy timber ```{ "name": "projectphil-bot", "version": "1.0.0", "description": "*This is the official repository for projectph...
TypeScript Help 3 messages
pale jolt I'm trying to learn ts by converting one of my project, the permission here is typed as `PermissionResolvable` and I get...
1081589253575823411
Try Catch 7 messages
heady vortex Why is the bot offline even though I have used try catch?
attachment 3 messages
wintry jackal ``` const image = { inlineData: { data: Buffer.from(fs.readFileSync("cookie.png")).toString("base64"), mimeTyp...
Fetch() method Put problem 23 messages
daring reef I have a problem, this can't want to edit my json file. I have json-server. ```js const respond = fetch("http://...
1081589071526240296 1081590299358412983
Database Advice 6 messages
pastel blaze Hey people, I have made my own api and would like to have some way to track data, and activity. I would like to make a w...
1081590299358412983
Eslint problems 7 messages
rain trail hey 👋 How can I easily change eslint rules from discordjs.guide - <https://discordjs.guide/preparations/setting-up-a-l...
Cached DJS commands? 3 messages
vernal hollow Hello! I'm making a Plants vs Zombies bot with a command called `/plantme` that gives a random list of plants to pick i...
Having trouble writing to a json with fs 1 messages
azure forum I am making a markov bot, and I am trying to push new messages into an array in a json file so that the cache doesnt res...
1081589071526240296
How can i use regex for links in .includes on a message? 4 messages
wooden knoll I found a regex online, but i need help to find out how i can use it in .includes. The regex is `^((http|https)\:\/\/)?(...
Mongoose helping 4 messages
ionic ibex Could someone help me write a mongoose aggregate query? For reference, I have a user document that is created for every ...
1081590299358412983
High Ram and CPU utilization (Fixed) 26 messages
flint stirrup I uptime **4 bots** and while 3 of them use ram at normal levels, one of them can output at least **50MB** and *up to* *...
1081589071526240296
How to check if randomServerWithAd blacklisted the server that is running this command. 13 messages
sick geyser ```js module.exports = { data: new SlashCommandBuilder() .setName("partner") .setDescription("Partne...
1081589071526240296 1081590299358412983
Markdown Error 3 messages
fair elm ```js const { Events, inlineCode, codeBlock } = require('discord.js'); module.exports = { name: Events.InteractionC...
1081589071526240296
Who knows for mongodb gridfsbucket, collection.files is not being saved 1 messages
compact junco i have this code: ``` createListeningStream(usersIds, writeStream, end) { const receiver = this.connection.receive...
1081589071526240296 1081590299358412983
Adds undefined while i didn't ask for it 2 messages
icy copper Code: https://srcb.in/gVhmAPWuwe, https://srcb.in/aoEL4ZymhO When i create, it creates a new embed as i want. But when i...
1081589071526240296
fetching data 3 messages
misty minnow Hello, somone with skill issues here. to use my discord bot you have to register with your player name of a game. unfort...
1081589071526240296 1081589253575823411
Mongoose query type 1 messages
1081589253575823411
TypeError: Cannot convert undefined or null to object 3 messages
split crown that's the error i get when executing this script, at the keys() function ``` const attachments = [{ url: 'https:/...
Dumb mongoose error 2 messages
sharp crystal hi all, probably dumb question but I dont work with mongo DJS V14 NodeJS v v21.6.0 Am I connecting the wrong way? Ive r...
1081589071526240296 1081590299358412983
mongoose entry doesnt get saved as Int 1 messages
trim fractal Hi, so I want a command.option in two different schemas. In one it should get saved as a string in one as a Int. I tried...
1081589071526240296 1081590299358412983
Mongoose Error: TypeError: Cannot create property ’id’ on string ‘191928290202927’ 7 messages
fiery linden Code: (image) mongoose version: v8 node version: 20.11.1
Hello, could anyone tell me reasons why my eslint is not working? 3 messages
solar oracle Hello, could anyone tell me reasons why my eslint is not working?
Cannot read properties of undefined (reading 'channels') 17 messages
dense wolf here's my code; This is on separate file from `index.js`, which is `/express/watcher.js` ```const { Events } = require(...
Canvas is not a function 11 messages
glass socket im geting this error i don't know how to solve it used to be working fine but now it won't
1081589071526240296
Found a bug in ts 11 messages
digital pine I found bug while coding in Ts
1081589253575823411
fetching user's avatar url returns undefined with discord api 11 messages
winter lava ```ts // avatar.ts export async function fetchUserAvatar(userId: string): Promise<string | null> { try { const res...
1081589071526240296 1081589253575823411
? 9 messages
uncut flicker isnt this right??
Oauth Help 14 messages
opal leaf How do I select a member to get the guild meber count from? Or does it take from any member with that guild
Getting paranoid with time conversions 1 messages
maiden lotus for my threadCreate autoarchive i have managed to get as far as getting current time, but it will not for the sake of it...
cannot read properties of undefined (reading 'upsert') 24 messages
slender sparrow Hi! I'm getting this error. This is the code.
Node Module Versions 10 messages
1081589071526240296
delete specific values in a DB 7 messages
trim fractal so my question has part to do with discord.js. I have a command that should save a users name and a few roles. So there'...
1081589071526240296 1081590299358412983
setDescription arranging 11 messages
sly tulip i am making a censor command, it takes multiple words (word1 word2 word3) and sentences too by using " " ("word1 word2 ...
1081589071526240296
Discord OAuth2 Security 1 messages
unique sequoia How can I protect myself so that someone else can't send me a request like discord to bypass security?
binding tool 19 messages
I possess a list of commands and seek assistance in their creation. 1 messages
fallen dragon I possess a list of commands and seek assistance in their creation. Would someone be willing to lend their expertise? C...
Wrong invite being filtered 4 messages
gilded lantern https://srcb.in/paqvoeBPjQ The wrong invite is being logged when i try to filter the invite that the user must have join...
Users lives are not getting saved to db 2 messages
merry zodiac https://sourceb.in/eAq13JIn2K code here
1081589071526240296 1081590299358412983
booster role issues 9 messages
fair elm ```js const roleIdsToRemove = [ '1221675461105422396', '1211272995063201812', '1211273022502338621...
1081589071526240296
OverwriteModelError: Cannot overwrite `AntiSpam` model once compiled. 15 messages
whole compass i got OverwriteModelError: Cannot overwrite `AntiSpam` model once compiled. from this code line 20 https://sourceb.in/u...
1081589071526240296 1081590299358412983
canvas avatar won’t show 6 messages
pastel blaze Hey guys, I’m trying to recreate something atm and the avatar just won’t show https://sourceb.in/5q7JmIGt2X here’s the c...
1081589071526240296
Error Canvas AvatarURL 3 messages
cedar jetty How to resolve this error ?
1081589071526240296
help me 12 messages
elfin kernel how do pacify the path to your project directory in vsc i cant do it
1081589071526240296
Check if users permissions are in range of Manage Guild 3 messages
misty jolt I'm working on a web dashboard and when I retrieve the list of guilds I only want to show the guilds the user has "Manag...
1081589071526240296 1081589253575823411
Rendering external HTML file 12 messages
high saffron So I had a feature to render external HTML files using its url, in order to render a Discord channel transcript. However...
1081589071526240296
I hate this 31 messages
proper lily Been working on this for months now (discord bot) and it comes down to the most important feature according to everyone ...
1081589071526240296 1081590299358412983
Modal wont display data 1 messages
naive cape Everytime i click on one of the buttons such as "View Past Names" it opens the modal at the top but doesnt display the d...
1081590447216017570