feat(commands/custom): set color is now updated to work in v15

This commit is contained in:
Raphael 2025-11-15 00:26:30 +01:00 committed by Raphaël
parent bec18a5a79
commit f7dbfbd2fa

View file

@ -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({