🐛 listen all select menu
This commit is contained in:
parent
da14d1c3c8
commit
29e8ec7282
|
|
@ -7,7 +7,11 @@ import {Config} from "../../config";
|
||||||
|
|
||||||
export class Roles extends SelectMenu {
|
export class Roles extends SelectMenu {
|
||||||
constructor(client: ShewenyClient) {
|
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) {
|
execute(selectMenu: SelectMenuInteraction) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue