Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

How to fetch selectoption fetch type with if #106

Open
Nicat-dcw opened this issue Jul 28, 2022 · 1 comment
Open

How to fetch selectoption fetch type with if #106

Nicat-dcw opened this issue Jul 28, 2022 · 1 comment

Comments

@Nicat-dcw
Copy link

  const func = modal.getSelectMenuValues('invite-function');

    if(func.value === "invite-set"){
db.set(`tracker_${modal.guild.id}`, kanal)
modal.reply("**System Settings Successfully Saved!**", {ephemeral: true})
}

Code is not working :(

@Mateo-tem
Copy link
Owner

func return the Array of values, so the if statement would be be if (func[0] === "invite-set") {}.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants