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