fix: update promise return types to undefined for delete and post methods

This commit is contained in:
MARCROCK22 2025-04-29 08:25:05 -04:00
parent 66b5ca34a9
commit 9cbde76ad0
3 changed files with 8 additions and 8 deletions

View File

@ -71,7 +71,7 @@ export interface ApplicationRoutes {
patch(
args: RestArguments<RESTPatchAPIApplicationGuildCommandJSONBody>,
): Promise<RESTPatchAPIApplicationGuildCommandResult>;
delete(args?: RestArgumentsNoBody): Promise<never>;
delete(args?: RestArgumentsNoBody): Promise<undefined>;
permissions: {
get(args?: RestArgumentsNoBody): Promise<RESTGetAPIGuildApplicationCommandsPermissionsResult>;
put(
@ -92,7 +92,7 @@ export interface ApplicationRoutes {
patch(
args: RestArguments<RESTPatchAPIApplicationCommandJSONBody>,
): Promise<RESTPatchAPIApplicationCommandResult>;
delete(args?: RestArgumentsNoBody): Promise<never>;
delete(args?: RestArgumentsNoBody): Promise<undefined>;
};
};
'role-connections': {
@ -122,10 +122,10 @@ export interface ApplicationRoutes {
(
id: string,
): {
get(args?: RestArgumentsNoBody<never>): Promise<RESTGetAPIEntitlementResult>;
delete(args?: RestArgumentsNoBody): Promise<never>;
get(args?: RestArgumentsNoBody): Promise<RESTGetAPIEntitlementResult>;
delete(args?: RestArgumentsNoBody): Promise<undefined>;
consume: {
post(args?: RestArgumentsNoBody): Promise<never>;
post(args?: RestArgumentsNoBody): Promise<undefined>;
};
};
};

View File

@ -190,7 +190,7 @@ export interface ChannelRoutes {
post(args: RestArguments<RESTPostAPIChannelWebhookJSONBody>): Promise<RESTPostAPIChannelWebhookResult>;
};
'voice-status': {
put(args: RestArguments<{ status: string | null }>): Promise<never>;
put(args: RestArguments<{ status: string | null }>): Promise<undefined>;
};
polls(messageId: string): {
answers(id: ValidAnswerId): {
@ -201,7 +201,7 @@ export interface ChannelRoutes {
};
};
'send-soundboard-sound': {
post(args: RestArguments<RESTPostAPISendSoundboardSound>): Promise<never>;
post(args: RestArguments<RESTPostAPISendSoundboardSound>): Promise<undefined>;
};
};
}

View File

@ -361,7 +361,7 @@ export interface GuildRoutes {
patch(
args?: RestArguments<RESTPatchAPIGuildSoundboardSound>,
): Promise<RESTPatchAPIGuildSoundboardSoundResult>;
delete(args?: RestArgumentsNoBody): Promise<never>;
delete(args?: RestArgumentsNoBody): Promise<undefined>;
};
};
};