#why does this menu reset when I select something? I want the placeholder as the menu selected
1 messages · Page 1 of 1 (latest)
huh
looks like you are reply with a new message everytime
you should set the previous selection as default
wdym?
then it keeps switching only to that one
it's not a new message I think
you can use your previous interaction to decide the new default
he's using interaction.deferUpdate() and edit the initial reply (slash command one)
the first time he makes a selection, the bot's reply has that command thing above it
something like this
making it not reset
is it a new message or not @hoary bough before going further?
lemme show you code
first 2 options
if(values[0] === "helpOwnerOption") {
client.commands.category.owner.forEach(cmd => {
return output.push(`**[${cmd.name}](${link})**
:Stabler: ${cmd.description || "No description provided"}`)
})
let embedOwner = new embed()
.setTitle("Owner")
.setDescription(output.join("\n"))
.setColor("2f3136")
.setTimestamp()
await i.editReply({ embeds: [embedOwner] })
} else if(values[0] === "helpModOption") {
client.commands.category.mod.forEach(cmd => {
return output.push(`**[${cmd.name}](${link})**
:Stabler: ${cmd.description || "No description provided"}`)
})
let embedMod = new embed()
.setTitle("Moderation")
.setDescription(output.join("\n"))
.setColor("2f3136")
.setTimestamp()
await i.editReply({ embeds: [embedMod] })
}
i might be wrong, but i see very little correlation between the code you sent and the first video. where is Economy or General?
I said the first 2 options
its the same
my bad
why do you think the select menu keeps resetting?
this one doesnt
where you define the select menu? aka where you send the initial msg
the assets.options is
options: [
{
label: "Bot owner",
description: "Commands that only the bot owner can use", value: "helpOwnerOption",
emoji: ":Crown:"
},
{
label: "Moderation",
description: "Commands that only moderators can use",
value: "helpModOption",
emoji: ":Lock:"
},
{
label: "General",
description: "General commands that mostly everyone can use",
value: "helpGeneralOption",
emoji: ":Settings:"
},
{
label: "Fun",
description: "Commands that can everyone can use for fun",
value: "helpFunOption",
emoji: ":Flower:"
},
{
label: "Economy",
description: "Economy commands that can be used by everyone",
value: "helpEconomyOption",
emoji: ":MoneyEmoji:"
},
{
label: "Image",
description: "Fun image commands",
value: "helpImageOption",
emoji: ":Picture:"
},
{
label: "Music",
description: "Intersting music commands",
value: "helpMusicOption",
emoji: ":MusicBeat:"
},
{
label: "Slash",
description: "All of the slash commands in Zetaku",
value: "helpSlashCmdsOption",
emoji: ":SlashCommand:"
},
{
label: "All",
description: "All of the commands in Zetaku",
value: "helpAllOption",
emoji: ":Pin:"
}
],
interaction.edit?
does the original message keeps its selection?
yes
Ye
use .update(), not .editReply()
i see you already used .deferUpdate() which is good
But if I use .deferUpdate() then .update it throws error
because I deferred it
right. sorry for telling misleading stuff, i'm not really experienced with update. how are you doing it in the working code with arrow buttons?
oh it doesn't do anything, it doesn't have any code, just editing new buttons
any idea how this bot did this? (dank memer)
maybe if you use just update without deferring
still does the same thing
you mean the same error?
but do you still get multiple messages from the bot?
wdym?
we confirmed previously that by using editReply, the bot edits a new message, rather than the original reply. does this still happens?
It does the same effect as edit
@solar agate You there?