#wtf ?
1 messages · Page 1 of 1 (latest)
What did you use to get the "773738409994747904"
I use other user id.
if (interaction.isButton()) {
if (interaction.customId.includes(`checkuser-id`)) {
await interaction.deferReply({ ephemeral: true })
// const user = client.users.cache.get(interaction.user.id);
var tempmsg = await interaction.followUp({
embeds: [new MessageEmbed()
.setColor("RANDOM")
.setDescription("**Please user id!** ")
.setTimestamp()
]
})
await tempmsg.channel.awaitMessages({
filter: i => i.author.id === interaction.user.id,
max: 1,
time: 90000,
errors: ["time"]
})
.then(collected => {
var message = collected.first();
const channel = client.userss.get(interaction.user.id, "checkme")
var { content } = message;
if (content) {
try {
return interaction.followUp({
embeds: [new MessageEmbed()
.setColor("RANDOM")
.setDescription(`${channel} ✅`)
.setTimestamp()
]
});
this 773738409994747904 user id but get 1 ✅ for my id.
@runic iron reexplain what you are trying to do
I may know what you’re trying to do just need to make sure
Check for this ss.
I click > ❤️ Check user yeah?
I get message Please user id.
I text for friend id(user id) 773738409994747904 this.
but get 1 ✅ (but not 773738409994747904) check.
@acoustic hull

Get for me id.
So you are going to click on the heart button which will ask you to input a user ID, and you have to enter a user ID (ur friend in this case) and it will return their data from ur database?
Yeah yeah. but did not understand how to do.
If you want to input a text upon pressing a button use a collector
Enmap.
that doesn’t look like mongodb
yeah xD
why did you use that ?
i using collector
if (interaction.isButton()) {
if (interaction.customId.includes(`checkuser-id`)) {
await interaction.deferReply({ ephemeral: true })
// const user = client.users.cache.get(interaction.user.id);
var tempmsg = await interaction.followUp({
embeds: [new MessageEmbed()
.setColor("RANDOM")
.setDescription("**Please user id!** ")
.setTimestamp()
]
})
await tempmsg.channel.awaitMessages({
filter: i => i.author.id === interaction.user.id,
max: 1,
time: 90000,
errors: ["time"]
})
.then(collected => {
var message = collected.first();
const channel = client.userss.get(interaction.user.id, "checkme")
var { content } = message;
if (content) {
try {
return interaction.followUp({
embeds: [new MessageEmbed()
.setColor("RANDOM")
.setDescription(`${channel} ✅`)
.setTimestamp()
]
});
const channel = client.userss.get(interaction.user.id, "checkme")
What is client.userss.get(interaction.user.id, "checkme") supposed to do? Try client.users.cache.get(interaction.user.id)
interaction.user.id > get my always id, but not this check id 773738409994747904
client.userss.get its enmap database
dud.
Well, it returns 1
Mongoose nah did not like.
mongodb isn’t the best, i’d rather use redis or mysql or psql
const channel = client.userss.get(interaction.user.id, "checkme")
interaction.user.id > get my always id, but not this check id 773738409994747904
this problem.
Well, your issue isn't with Discord.js it seems
const channel = client.userss.get(interaction.user.id, "checkme")
but here, you are checking for user_id not a channel id ???
channel = interaction.user_.id ????
interaction.user.id return your id
not searched id
depends on the name you think?
I prefer mongodb personnaly bcs, most famous
And, the speed is better with mongodb
actually incorrect
not for high scaling applications
but how searched id..
@runic iron I feel like getting a user from enmap is not djs related
use mongoose
is not djs relatedinteraction.user.id it's not djs? 😄

I already told u
message.content is what you input.
const user = interaction.guild.members.cache.find(user => user.id === entered_id);
But you can use fetch
or get
let entered_id = interaction.options.getString('user_id');
const user = interaction.guild.members.cache.find(user => user.id === entered_id);
Dud you on /command slash. (this line interaction.options.getString('user_id'); on buttons not work.
interaction.guild.members.cache.get('User ID');
yeah but you can do that
combine with that
Still unsure why a user or member needs to be fetched
he want to search a specific user by entering id
What's the database for then 
Idk
I’m honestly confused what they’re trying to accomplish in general
with the code they provided
Ok ok
it's my
bad
i did.
😄
var { content } = message;
if (content) {
try {
const channel = client.userss.get(message, "checkme")
Work fine.
as far as i realized that content reads and checks for that 😄
You're using a message to get something in userss to name the variable channel? I am beyond confused
This is what I told here
client.userss.get - it's enmap database
And it returns a channel?
to name the variable channel? nani? i changed for your nick 😄
does the name seem so important?
Mhhh.
Imagine having :
let apple = pen
xxddd
This is the same thing
So what's the issue you're having with djs?
I fixed problem.