Compare commits

...

2 Commits

Author SHA1 Message Date
Jill 1b6f23d75f unrestricted pronounce!!! 2023-11-27 15:14:10 +03:00
Jill ca0d5c911c unrestricted color!!! 2023-11-27 15:14:09 +03:00
2 changed files with 4 additions and 8 deletions

View File

@ -1,7 +1,6 @@
import { RoleCreateOptions, GuildMember, CommandInteraction, EmbedBuilder, TextChannel, ActionRowBuilder, ButtonBuilder, ButtonStyle, SlashCommandBuilder } from 'discord.js';
import { default as parseColor, Color } from 'parse-color';
import { isColorRole, COLOR_ROLE_SEPERATOR } from '../lib/assignableRoles';
import { knownServers } from '../lib/knownServers';
import * as log from '../lib/log';
import { Command } from '../types/index';
@ -46,9 +45,8 @@ export default {
)
.addBooleanOption((option) =>
option.setName('preview').setDescription('Preview the color instead of applying it')
),
serverWhitelist: [...knownServers.firepit],
)
.setDefaultPermission(0),
execute: async (interaction: CommandInteraction) => {
if (!interaction.isChatInputCommand()) return;

View File

@ -1,6 +1,5 @@
import { RoleCreateOptions, GuildMember, CommandInteraction, SlashCommandBuilder } from 'discord.js';
import { pronouns, PRONOUN_ROLE_SEPERATOR } from '../lib/assignableRoles';
import { knownServers } from '../lib/knownServers';
import * as log from '../lib/log';
import { Command } from '../types/index';
@ -18,9 +17,8 @@ export default {
.setDescription('Pronoun to add. If you already have a pronoun, you can specify it to remove it.')
.setRequired(true)
.setChoices(...Array.from(pronouns.values()).map(extendOption))
),
serverWhitelist: [...knownServers.firepit],
)
.setDefaultPermission(0),
execute: async (interaction: CommandInteraction) => {
if (!interaction.isChatInputCommand()) return;