feat(commands/custom): set color is now updated to work in v15
This commit is contained in:
parent
bec18a5a79
commit
f7dbfbd2fa
1 changed files with 4 additions and 2 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue