sbot50
Explore posts from serversIs there a good way to register all commands at once?
Ok, im less of an idiot than i thought, still dumb tho.
Appearently my commands list was name-shadowed because the createglobalapplicationcommandsbuilder or whatever long name its called internally also has a commands list, so it was using that instead of mine.
15 replies
Is there a good way to register all commands at once?
I should mention that this:
works fine (aka getting a command and doing .register without going through a loop, I dislike this solution tho because then i already have all commands in a list so i can reference them later.
So based on this my assumption is that its a scoping issue
15 replies
How do I get the category a channel is in?
Ok so no clue what i would want to but in the <> of .getChannelOf, but theoretically i could cast it as a categorizablechannel and then get the category then do .asChannel and i will have the category.
(if i wasnt hit with more access bs from dc, but ill figure it out from here)
thanks.
3 replies
DIdiscord.js - Imagine ❄
•Created by sbot50 on 6/21/2024 in #djs-questions
Message interaction is null
I found out that im an idiot, i recoded it wrong and it summons a new msg. I'll mark this as closed
5 replies
DIdiscord.js - Imagine ❄
•Created by sbot50 on 6/21/2024 in #djs-questions
Message interaction is null
I dont see how most of this is relevant but ok
Node version: v22.3.0
DiscordJS version: 14.15.3
Might be a dc api issue, seeing as theyre moving to inteaction_metadata or smth
Code:
The stack trace really isnt needed, it just that in the logs the value of
interaction
for the msg object is null
unless its the first button press.5 replies