feat: Add embed colors
This commit is contained in:
parent
af7ad11ed8
commit
5f663e7abe
2 changed files with 11 additions and 0 deletions
|
@ -101,6 +101,7 @@ export default class DataLengthCommand extends Command {
|
|||
inline: true,
|
||||
},
|
||||
)
|
||||
.setColor(this.container.embedColors.default)
|
||||
|
||||
return ctx instanceof Message
|
||||
? await ctx.reply({
|
||||
|
|
10
src/init.ts
10
src/init.ts
|
@ -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)
|
||||
|
|
Reference in a new issue