Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ApplicationCommandRegistries): add `RegisterBehavior.BulkOverwri…
…te` which has Sapphire use bulk overwrite for registering Application Commands (#585) Co-authored-by: Jeroen Claassens <support@favware.tech>
- Loading branch information
1 parent
bfa3561
commit 9f0ef5e
Showing
4 changed files
with
191 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { container } from '@sapphire/pieces'; | ||
|
||
export function bulkOverwriteInfo(message: string, ...other: unknown[]) { | ||
container.logger.info(`ApplicationCommandRegistries(BulkOverwrite) ${message}`, ...other); | ||
} | ||
|
||
export function bulkOverwriteError(message: string, ...other: unknown[]) { | ||
container.logger.error(`ApplicationCommandRegistries(BulkOverwrite) ${message}`, ...other); | ||
} | ||
|
||
export function bulkOverwriteWarn(message: string, ...other: unknown[]) { | ||
container.logger.warn(`ApplicationCommandRegistries(BulkOverwrite) ${message}`, ...other); | ||
} | ||
|
||
export function bulkOverwriteDebug(message: string, ...other: unknown[]) { | ||
container.logger.debug(`ApplicationCommandRegistries(BulkOverwrite) ${message}`, ...other); | ||
} |