From f7dbfbd2faaec6625c7df8b78477aeb2e8c7ed20 Mon Sep 17 00:00:00 2001 From: Raphael Date: Sat, 15 Nov 2025 00:26:30 +0100 Subject: [PATCH] feat(commands/custom): set color is now updated to work in v15 --- src/commands/custom/set.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/commands/custom/set.ts b/src/commands/custom/set.ts index edc52ce..98d77b5 100644 --- a/src/commands/custom/set.ts +++ b/src/commands/custom/set.ts @@ -9,6 +9,8 @@ import { import emoji from '../../../assets/emoji.json' assert { type: 'json' }; import { User as UserPrisma } from '@prisma/client'; import { log } from '@lib/log.js'; +import { color as colorLib } from '@lib/color'; +import { isBuyer, isOwner } from '@lib/perm.js'; export default { data: new SlashCommandBuilder() @@ -150,11 +152,11 @@ export default { id: interaction.guild.id, }, update: { - color: newColor, + color: colorLib.encode(newColor), }, create: { id: interaction.guild.id, - color: newColor, + color: colorLib.encode(newColor), }, }); await interaction.reply({