chore: more type annotations

This commit is contained in:
Marius Begby committed 2023-09-14 14:49:30 +02:00
1 parent 4041404f01
commit 10c03d599f
4 files changed
+43 -33

No files matched your search

+3 -3
View File
@@ -21,7 +21,7 @@ export const registerClientInteractions = async ({ client, executionId }: Regist
logger.debug('Registering all client interactions complete.');
};
async function registerSlashCommandInteractions(logger: Logger, client: ExtendedClient) {
async function registerSlashCommandInteractions(logger: Logger, client: ExtendedClient): Promise<void> {
logger.debug('Registering client slash command interactions...');
client.slashCommandInteractions = new Collection();
@@ -61,7 +61,7 @@ async function registerSlashCommandInteractions(logger: Logger, client: Extended
logger.trace('Registering client slash command interactions complete.');
}
async function registerAutocompleteInteractions(logger: Logger, client: ExtendedClient) {
async function registerAutocompleteInteractions(logger: Logger, client: ExtendedClient): Promise<void> {
logger.debug('Registering client autocomplete interactions...');
client.autocompleteInteractions = new Collection();
@@ -91,7 +91,7 @@ async function registerAutocompleteInteractions(logger: Logger, client: Extended
logger.trace('Registering client autocomplete interactions complete.');
}
async function registerComponentInteractions(logger: Logger, client: ExtendedClient) {
async function registerComponentInteractions(logger: Logger, client: ExtendedClient): Promise<void> {
logger.debug('Registering client component interactions...');
client.componentInteractions = new Collection();