feat: Add embed colors

This commit is contained in:
Siwoo Jeon 2025-03-01 17:45:12 +09:00
parent af7ad11ed8
commit 5f663e7abe
Signed by: migan
GPG key ID: 036E9A8C5E8E48DA
2 changed files with 11 additions and 0 deletions

View file

@ -101,6 +101,7 @@ export default class DataLengthCommand extends Command {
inline: true,
},
)
.setColor(this.container.embedColors.default)
return ctx instanceof Message
? await ctx.reply({

View file

@ -8,6 +8,11 @@ declare module '@sapphire/pieces' {
config: Config
prefix: string
version: string
embedColors: {
default: number
fail: number
success: number
}
}
}
@ -22,5 +27,10 @@ container.dbDisconnect = async () => await disconnect()
container.config = new Config()
container.prefix = container.config.bot.prefix
container.version = '5.0.0-newMuffin.e250301a'
container.embedColors = {
default: 0xaddb87,
fail: 0xff0000,
success: 0x00ff00,
}
await connect(container.config.databaseUrl)