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(
|
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>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -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>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -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>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user