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( patch(
args: RestArguments<RESTPatchAPIApplicationGuildCommandJSONBody>, args: RestArguments<RESTPatchAPIApplicationGuildCommandJSONBody>,
): Promise<RESTPatchAPIApplicationGuildCommandResult>; ): Promise<RESTPatchAPIApplicationGuildCommandResult>;
delete(args?: RestArgumentsNoBody): Promise<never>; delete(args?: RestArgumentsNoBody): Promise<undefined>;
permissions: { permissions: {
get(args?: RestArgumentsNoBody): Promise<RESTGetAPIGuildApplicationCommandsPermissionsResult>; get(args?: RestArgumentsNoBody): Promise<RESTGetAPIGuildApplicationCommandsPermissionsResult>;
put( put(
@ -92,7 +92,7 @@ export interface ApplicationRoutes {
patch( patch(
args: RestArguments<RESTPatchAPIApplicationCommandJSONBody>, args: RestArguments<RESTPatchAPIApplicationCommandJSONBody>,
): Promise<RESTPatchAPIApplicationCommandResult>; ): Promise<RESTPatchAPIApplicationCommandResult>;
delete(args?: RestArgumentsNoBody): Promise<never>; delete(args?: RestArgumentsNoBody): Promise<undefined>;
}; };
}; };
'role-connections': { 'role-connections': {
@ -122,10 +122,10 @@ export interface ApplicationRoutes {
( (
id: string, id: string,
): { ): {
get(args?: RestArgumentsNoBody<never>): Promise<RESTGetAPIEntitlementResult>; get(args?: RestArgumentsNoBody): Promise<RESTGetAPIEntitlementResult>;
delete(args?: RestArgumentsNoBody): Promise<never>; delete(args?: RestArgumentsNoBody): Promise<undefined>;
consume: { 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>; post(args: RestArguments<RESTPostAPIChannelWebhookJSONBody>): Promise<RESTPostAPIChannelWebhookResult>;
}; };
'voice-status': { 'voice-status': {
put(args: RestArguments<{ status: string | null }>): Promise<never>; put(args: RestArguments<{ status: string | null }>): Promise<undefined>;
}; };
polls(messageId: string): { polls(messageId: string): {
answers(id: ValidAnswerId): { answers(id: ValidAnswerId): {
@ -201,7 +201,7 @@ export interface ChannelRoutes {
}; };
}; };
'send-soundboard-sound': { '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( patch(
args?: RestArguments<RESTPatchAPIGuildSoundboardSound>, args?: RestArguments<RESTPatchAPIGuildSoundboardSound>,
): Promise<RESTPatchAPIGuildSoundboardSoundResult>; ): Promise<RESTPatchAPIGuildSoundboardSoundResult>;
delete(args?: RestArgumentsNoBody): Promise<never>; delete(args?: RestArgumentsNoBody): Promise<undefined>;
}; };
}; };
}; };