Yoqurt
Yoqurt
DIAdiscord.js - Imagine an app
Created by Yoqurt on 1/19/2024 in #djs-questions
Permission
const hasManageMessagesPermission = interaction.member.permissions.has('PermissionFlagsBits.ManageMessages');

if (!hasManageMessagesPermission) {
interaction.reply({
content: `**Nie masz uprawnienia do zarządzania wnioskami.**`,
ephemeral: true,
});
return;
}
const hasManageMessagesPermission = interaction.member.permissions.has('PermissionFlagsBits.ManageMessages');

if (!hasManageMessagesPermission) {
interaction.reply({
content: `**Nie masz uprawnienia do zarządzania wnioskami.**`,
ephemeral: true,
});
return;
}
6 replies
DIAdiscord.js - Imagine an app
Created by Yoqurt on 9/16/2023 in #djs-questions
How to make the bot perform something every 10 mins?
How to make the bot do something every 10 min, such as updating the channel name, as a user counter
9 replies
DIAdiscord.js - Imagine an app
Created by Yoqurt on 6/24/2023 in #djs-questions
Why I have numbers there?
3 replies
DIAdiscord.js - Imagine an app
Created by Yoqurt on 6/18/2023 in #djs-questions
Why buttons doesn't worked after bot restart?
Why if the bot sends a button message and is restarted. The button no longer works. Is it possible to change this somehow?
27 replies
DIAdiscord.js - Imagine an app
Created by Yoqurt on 6/17/2023 in #djs-questions
Why channel.send doesn't worked
5 replies
DIAdiscord.js - Imagine an app
Created by Yoqurt on 5/29/2023 in #djs-questions
Simple questioin
5 replies
DIAdiscord.js - Imagine an app
Created by Yoqurt on 5/14/2023 in #djs-questions
Get user who clicked button
I would like to get the nickname of the user who pressed the button, only that when I type there, for example, interaction.member.user.username, it gives me the user who typed the slash command
19 replies
DIAdiscord.js - Imagine an app
Created by Yoqurt on 5/8/2023 in #djs-questions
Question about interaction
I have a slash command where the you can mention user. The command sends the nickname of the user who typed it and who was mention in it. Below the command I have a button. I would like it to send the same thing as before when pressed, only to add the nickname of the user who pressed it. Does anyone have an idea how to do this?
3 replies