Compare commits
No commits in common. "1b6f23d75f11dae217371058bc63bea2168b882d" and "df9710429421e10adb94eb74afe432dbd8ed4e92" have entirely different histories.
1b6f23d75f
...
df97104294
|
@ -1,6 +1,7 @@
|
|||
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';
|
||||
|
||||
|
@ -45,8 +46,9 @@ export default {
|
|||
)
|
||||
.addBooleanOption((option) =>
|
||||
option.setName('preview').setDescription('Preview the color instead of applying it')
|
||||
)
|
||||
.setDefaultPermission(0),
|
||||
),
|
||||
|
||||
serverWhitelist: [...knownServers.firepit],
|
||||
|
||||
execute: async (interaction: CommandInteraction) => {
|
||||
if (!interaction.isChatInputCommand()) return;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
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';
|
||||
|
||||
|
@ -17,8 +18,9 @@ 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))
|
||||
)
|
||||
.setDefaultPermission(0),
|
||||
),
|
||||
|
||||
serverWhitelist: [...knownServers.firepit],
|
||||
|
||||
execute: async (interaction: CommandInteraction) => {
|
||||
if (!interaction.isChatInputCommand()) return;
|
||||
|
|
Loading…
Reference in New Issue