Question - Support of All Intents
So, if we don't like people using numbers for "all intents"...why does
new Client
support being passed a single number?65 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.cuz its a bitfield, bitfields are numbers
If you look at the enum of intents you see their respective bitfield value.
djs just takes that, adds it together and then yeets it towards discord
Yea I get that, but why not enforce an Array?
It'll cull the 99% of people who throw in a number, rather than doing anything next-step such as construction of the Intent object
Like if they do
new Intent(32767)
then they've worked extra hard to the same stupid movethat wont stop them from passing all intents
I use numbers as well, cuz I know what I'm doing
haha, fair enough.
I guess it's too far gone to change it now 🤔
That's fair 👍
A phrase does come to mind:
"You cannot make an idiot-proof system, because nature will make a better idiot"
gonna make a reverse intent calculator so yall can see what intents they use via number
This should be painted everywhere
It's not a bad ideia ngl
Really not a bad idea
Cc: @souji
Maybe cerb or djs docs?
I think this would be better suitable to djs docs
Totally this.
I did the same when I make cron stuff, Slash Command tells me next 10 for a cron
yeah
Yeah it's fairly easy
And this is why I always speak my mind, never know where a conversation might go 🙂
But it has djs installed bc of the Forum messages
imo if people want a calculator, I'm gonna give them a calculator, with a huge fat warning to not use all intents if they dont need them, and in addition a mode to get the intents from the number
Maybe it could output the bitfield code to replace the intents
Makes sense, my bad
Input: 12345
Output:
DONT USE NUMBERS
Or maybe thats too much?
Could get spammy
I would say just a list, because you shouldn't need to convert all intents to anything
The purpose would be to see what intents the person has, through that number
Not to let them continue to have all
True
Can be
The problem is, generally those numbers are all intents
So the list would be gigantic
We have what, 23 intents?
if you want to see what intents that number relates to, you will have to live with that
True
Could be smt like:
Ephemeral: Detailed
Public: Resumed
Or have an option to display detailed
Just display it in a single value, and join with
\n
tooCouldn't be used in the support channel, idk
Yeah, that should be more of a personal command, so ephemeral.
Oh, that's big brain thinking
Or like other commands we have, with an optional option to show it, in case someone starts to argue
Then I think this would be the better way to show
All of the cerb commands have a way to make the reply public, probably it would have it too
yeah, thats what I meant
I'm wierd, my bad 😅
@qjuh not gonna ask how you managed to fail /pet
Cerb doesn't like my company
Thank you my lovely
I thought it was gonna be Empheral?
But it's sexy
It is
It has an optional hide option which defaults to true
I see no
+1
True
Soujis command was with that option
bamboozled
if i'm REALLY bored i might even make it a context command
Do it
If you do it ill buy you soju
Make it extract the content of the message, seek for numbers, and then use that 😮
Just looking for intents: number
Wdym
That would also match
TBH, it's a pipe dream, not worth the effort 😄
god damn it, I was basing on your example! 😄
just need a good enough regex
Famous last words, before decent into Madness
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
(now also available as context)
bc why not
Madness
Souji is really into it
#goodenough
I only need 4096 intents with you
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
i prefer boba, actually
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
GG
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
or you dont be dumb and just use the intents you need
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
still no
you still run into the same issues
that is still not all intents
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
at least we would know what intents they are using then
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
This ⏫