🐛 listen all select menu

This commit is contained in:
Aymeric GUERACAGUE 2022-07-01 00:36:20 +02:00
parent da14d1c3c8
commit 29e8ec7282
Signed by: Superkooka
GPG Key ID: F78F2B172E894865
1 changed files with 5 additions and 1 deletions

View File

@ -7,7 +7,11 @@ import {Config} from "../../config";
export class Roles extends SelectMenu {
constructor(client: ShewenyClient) {
super(client, ["interaction-poc-lang"]);
const container = Container.container
const config = container.get<Config>("config")
const customIDS = Object.keys(config.roles_picker)
super(client, customIDS.map(name => `interaction-poc-${name}`));
}
execute(selectMenu: SelectMenuInteraction) {