live updater
i have some commands, and some of them creates embeds, but if the bot created a verify embed, then i update the bot, then the verification process doesnt work anymore, or other embeds, so is there something i can do? for example doing smth in index.js?
19 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by staffnpm list discord.js:
14.16.3
node -v: 20.18.0
show your code- Verification process doesn't work how? - wdym by "update the bot"? You mean restart?
oh, i saw the message now, and yes, i mean restart, like "nodemon", but i dont want it only in verification embed, i also want it in every script/command, so should i send index.js?
so how can i do that?
(pls ping me if u answer me)
cant i make one in vsc?
hi
@EgesWorld u know codding
like
Dc.js
and py
.js a little bit
ok
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
im helping him
im codding a "autorole" right now
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
bro
are u serius rn
autorole.js
turkish ver :
const { SlashCommandBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('autorole')
.setDescription('Set a role to be automatically assigned to new members')
.addRoleOption(option =>
option.setName('role')
.setDescription('Role to assign to new members')
.setRequired(true))
.addChannelOption(option =>
option.setName('log_channel')
.setDescription('Channel to log autorole actions')
.setRequired(true)),
async execute(interaction) {
const role = interaction.options.getRole('role');
const logChannel = interaction.options.getChannel('log_channel');
// Save the role and channel IDs for use later
interaction.client.autoroleSettings = {
roleId: role.id,
logChannelId: logChannel.id,
};
await interaction.reply(
Autorole set to ${role} and logs will be sent to ${logChannel}
);
}
};he is
we chatted per dm too
BRO
here is ss
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
can u show where that says in the rules?
Yea
bro
@hexpection