mahakadema
mahakadema
DIAdiscord.js - Imagine an app
Created by brettski on 9/25/2023 in #djs-questions
Can incoming webhooks work directly with the app/bot?
You can host a web server on your bot. (Let's say your bot runs on 234.56.1.89) Then you can send a POST request to https://234.56.1.89/whatever and receive that data on your bot. That's not really djs related anymore tho, rather it's implementing webhooks on ur own. (look up "nodejs how to host web server and handle requests", u can also use libraries such as Express, which make that part a lot easier) As for using the webhooks discord provides (with https://discord.com) u can only do that by reading the messages that get send to discord channels as a result. (Ur client never sees the data before that, as it's handled by the server at discord.com)
6 replies
DIAdiscord.js - Imagine an app
Created by Sayrix on 9/14/2023 in #djs-questions
Cache Sweeper
Something that would definitely help in diagnosing where this RAM usage originates from (because i see nothing here indicating that caches are what drive up this ram usage) would be to diagnose whether the sweepers run as expected. this event listener:
client.on(Events.CacheSweep, (msg) => console.log("SWEEPER RUN", msg))
client.on(Events.CacheSweep, (msg) => console.log("SWEEPER RUN", msg))
would allow you to diagnose whether the numbers approximately match up. If they do, ur RAM leakage is likely caused by other stuff
52 replies
DIAdiscord.js - Imagine an app
Created by ! Murali Anand on 9/22/2023 in #djs-questions
HTTPError: Bad Gateway
U can find a list of all HTTP status codes with explanations by googling "HTTP status code list"
10 replies
DIAdiscord.js - Imagine an app
Created by ! Murali Anand on 9/22/2023 in #djs-questions
HTTPError: Bad Gateway
502 signifies that Discords API servers received some error from another internal Discord server and therefore couldn't handle your request. (This can be something like the database failing to store the message u are trying to send)
10 replies
DIAdiscord.js - Imagine an app
Created by DiabolusGX on 2/12/2023 in #djs-questions
Better way to plugin slash commands support with existing msg content commands
(oh, and none of my commands use interaction.reply or message.channel.send, they just return the message to send, and then the respective handler actually calls the correct function to use)
21 replies
DIAdiscord.js - Imagine an app
Created by DiabolusGX on 2/12/2023 in #djs-questions
Better way to plugin slash commands support with existing msg content commands
(the ctx in the message handler is missing a couple properties, because i phased out message commands some time ago and didn't update it to the newest version)
21 replies
DIAdiscord.js - Imagine an app
Created by DiabolusGX on 2/12/2023 in #djs-questions
Better way to plugin slash commands support with existing msg content commands
and in the end, both of these give me the same 2 objects, no matter whether i do /coolstuff user:@mahakadema optionalArg: 14 or !coolstuff @mahakadema --optionalArg 14
21 replies
DIAdiscord.js - Imagine an app
Created by DiabolusGX on 2/12/2023 in #djs-questions
Better way to plugin slash commands support with existing msg content commands
21 replies
DIAdiscord.js - Imagine an app
Created by DiabolusGX on 2/12/2023 in #djs-questions
Better way to plugin slash commands support with existing msg content commands
21 replies
DIAdiscord.js - Imagine an app
Created by DiabolusGX on 2/12/2023 in #djs-questions
Better way to plugin slash commands support with existing msg content commands
21 replies
DIAdiscord.js - Imagine an app
Created by mahakadema on 2/13/2023 in #djs-questions
WS dies and never reconnects
ok cool cool
4 replies
DIAdiscord.js - Imagine an app
Created by DiabolusGX on 2/12/2023 in #djs-questions
Better way to plugin slash commands support with existing msg content commands
this is what i did, extract ctx and args containing context and arguments respectively. Though I have to say, having done it, it's more hassle than it's worth (It did end up with me having a pretty nice command handler, allowing me to easily add new commands. Still not a good investment of my time, though)
21 replies
DIAdiscord.js - Imagine an app
Created by mahakadema on 2/13/2023 in #djs-questions
WS dies and never reconnects
this one has decent-ish color to distinguish the comments
4 replies