Search
Setup for Free
S-IaF
Sapphire - Imagine a Framework
•
4y ago
kyra
Just because you can, 100 characters in custom_id is pleeenty of space
Just because you can
, 100 characters in custom
_id is pleeenty of space
Sapphire - Imagine a Framework
Join
Sapphire is a next-gen object-oriented Discord.js bot framework.
2,274
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
K
kyra
Just because you can, 100 characters in custom_id is pleeenty of space
D
Dax-Holden (Bejasc)
•
4/14/22, 11:54 AM
99
% of my buttons use timestamp in the id
, too
, and are designed to be used once only
D
Dax-Holden (Bejasc)
•
4/14/22, 11:54 AM
In this specific case above
, it
's essentially a button for verify
, which has an ID like
"verify
_user
"
D
Dax-Holden (Bejasc)
```ts private buttonInteractionHandler(interaction: ButtonInteraction): void...
D
Dax-Holden (Bejasc)
•
4/14/22, 11:57 AM
Haven
't had a good chance to test it yet
, but what I
've set up now is in any case there
's an error
, or it
's an unbound button
, it checks if the id is that
"verify
_user
" and just adds the button again
.
D
Dax-Holden (Bejasc)
•
4/14/22, 11:57 AM
works in my head
¯
\
_
(
ツ
)
_
/
¯
S
Spinel
APP
•
4/14/22, 3:45 PM
Tag suggestion for
@Deleted User
:
https://cdn.favware.tech/img/talkischeap.png
E
Enes
•
4/14/22, 3:46 PM
member
.presence is null
E
Enes
•
4/14/22, 3:46 PM
what does typescript say about it
E
Enes
•
4/14/22, 3:46 PM
remove the
!
E
Enes
•
4/14/22, 3:47 PM
and what is members
D
Deleted User
```ts const members = interaction.guild?.members.cache;```
E
Enes
•
4/14/22, 3:48 PM
try using
.fetch
(
) instead
E
Enes
•
4/14/22, 3:49 PM
I told you to remove
!
, so we can see the type error
E
Enes
•
4/14/22, 3:51 PM
also fetch is better for this
, and it will work
E
Enes
•
4/14/22, 3:51 PM
¯\_(ツ)_/¯
E
Enes
•
4/14/22, 3:54 PM
something is wrong with your timestamp
E
Enes
•
4/14/22, 3:54 PM
log it
E
Enes
•
4/14/22, 3:55 PM
and send it here
E
Enes
•
4/14/22, 3:55 PM
1647117394653
Next page
Similar Threads
filtering custom id via name
S-IaF
Sapphire - Imagine a Framework / sapphire-support
9mo ago
How can I partition custom id schemas using `@sapphire/string-store`
S-IaF
Sapphire - Imagine a Framework / sapphire-support
3mo ago
Can you have folders for commands in SapphireJS
S-IaF
Sapphire - Imagine a Framework / sapphire-support
4y ago