Skip to content

Commit

Permalink
fix: remove elevated roles
Browse files Browse the repository at this point in the history
closes #747
  • Loading branch information
TobiTenno committed Jun 22, 2024
1 parent 8061af7 commit a0ea54a
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/interactions/core/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export default class Settings extends Interaction {
auto_shown: 'defaultShown',
temp_category: 'tempCategory',
temp_channel: 'tempChannel',
elevated_roles: 'elevatedRoles',
};
static #rooms = [
{
Expand Down Expand Up @@ -195,17 +194,6 @@ export default class Settings extends Interaction {
},
],
},
{
...cmds['settings.elevated_roles'],
type: Types.SUB_COMMAND,
options: [
{
...cmds['settings.elevated_roles.str'],
type: Types.STRING,
required: true,
},
],
},
...(games.includes('CUST_CMDS') ? Settings.#custom : []),
...(games.includes('UTIL') ? [Settings.#setLFG] : []),
...(games.includes('ROOMS') ? this.#rooms : []),
Expand Down Expand Up @@ -530,12 +518,6 @@ export default class Settings extends Interaction {
case 'platform':
await ctx.settings.setChannelSetting(channel, field, value);
return interaction.editReply(`set ${field} to \`${value}\``);
case 'elevated_roles':
field = this.#aliases[field] || field;
value = this.#getMentions(value, interaction.guild)
.map((role) => role.id)
.join(',');
return ctx.handler.recalcPerms(value, interaction.guild);
case 'language':
await ctx.settings.setGuildSetting(interaction.guild, field, value);
return interaction.editReply({ content: `set ${field} to \`${value}\``, ephemeral });
Expand Down

0 comments on commit a0ea54a

Please # to comment.