Client.onSubmit() - shysolocup/noscord.js GitHub Wiki

adds a new listener to select menu submit events

JS
client.onSubmit(async (ctx) => {       
    console.log("any selection has been submitted");
});   

client.onSubmit("my_selection", async (ctx) => {       
    console.log("my selection has been submitted");
});   

Function Sync

Arguments:

  • ?id String
    specific select menu id to listen for

  • callback Function
    callback ran when the event is fired




⚠️ **GitHub.com Fallback** ⚠️