Class: LoggerStyle
@sapphire/plugin-logger.LoggerStyle
Logger utility that applies a style to a string.
Since
1.0.0
Constructors
constructor
• new LoggerStyle(resolvable?
)
Parameters
Name | Type |
---|---|
resolvable | LoggerStyleResolvable |
Defined in
projects/plugins/packages/logger/src/lib/LoggerStyle.ts:10
Properties
style
• Readonly
style: Color
Defined in
projects/plugins/packages/logger/src/lib/LoggerStyle.ts:8
Methods
run
▸ run(string
): string
Applies the style to a string.
Since
1.0.0
Parameters
Name | Type | Description |
---|---|---|
string | string | number | The value to apply the style to. |
Returns
string