diff --git a/src/interactions/select-menus/roles.ts b/src/interactions/select-menus/roles.ts index 1b6e5e6..af0b856 100644 --- a/src/interactions/select-menus/roles.ts +++ b/src/interactions/select-menus/roles.ts @@ -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") + const customIDS = Object.keys(config.roles_picker) + + super(client, customIDS.map(name => `interaction-poc-${name}`)); } execute(selectMenu: SelectMenuInteraction) {