mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 12:36:08 +00:00
fix: update promise return types to undefined for delete and post methods
This commit is contained in:
parent
66b5ca34a9
commit
9cbde76ad0
@ -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>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -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>;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -361,7 +361,7 @@ export interface GuildRoutes {
|
||||
patch(
|
||||
args?: RestArguments<RESTPatchAPIGuildSoundboardSound>,
|
||||
): Promise<RESTPatchAPIGuildSoundboardSoundResult>;
|
||||
delete(args?: RestArgumentsNoBody): Promise<never>;
|
||||
delete(args?: RestArgumentsNoBody): Promise<undefined>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user