mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 12:36:08 +00:00
106 lines
4.1 KiB
TypeScript
106 lines
4.1 KiB
TypeScript
import type {
|
|
RESTGetAPIApplicationCommandResult,
|
|
RESTGetAPIApplicationCommandsQuery,
|
|
RESTGetAPIApplicationCommandsResult,
|
|
RESTGetAPIApplicationGuildCommandResult,
|
|
RESTGetAPIApplicationGuildCommandsQuery,
|
|
RESTGetAPIApplicationGuildCommandsResult,
|
|
RESTGetAPIApplicationRoleConnectionMetadataResult,
|
|
RESTGetAPIGuildApplicationCommandsPermissionsResult,
|
|
RESTPatchAPIApplicationCommandJSONBody,
|
|
RESTPatchAPIApplicationCommandResult,
|
|
RESTPatchAPIApplicationGuildCommandJSONBody,
|
|
RESTPatchAPIApplicationGuildCommandResult,
|
|
RESTPostAPIApplicationCommandsJSONBody,
|
|
RESTPostAPIApplicationCommandsResult,
|
|
RESTPostAPIApplicationGuildCommandsJSONBody,
|
|
RESTPostAPIApplicationGuildCommandsResult,
|
|
RESTPutAPIApplicationCommandPermissionsJSONBody,
|
|
RESTPutAPIApplicationCommandsJSONBody,
|
|
RESTPutAPIApplicationCommandsResult,
|
|
RESTPutAPIApplicationGuildCommandsJSONBody,
|
|
RESTPutAPIApplicationGuildCommandsResult,
|
|
RESTPutAPIApplicationRoleConnectionMetadataJSONBody,
|
|
RESTPutAPIApplicationRoleConnectionMetadataResult,
|
|
RESTPutAPIGuildApplicationCommandsPermissionsResult,
|
|
} from '../../common';
|
|
import type { RestArguments } from '../api';
|
|
import type { ProxyRequestMethod } from '../Router';
|
|
|
|
export interface ApplicationRoutes {
|
|
applications: {
|
|
(
|
|
id: string,
|
|
): {
|
|
guilds: {
|
|
(
|
|
id: string,
|
|
): {
|
|
commands: {
|
|
get(
|
|
args?: RestArguments<ProxyRequestMethod.Get, RESTGetAPIApplicationGuildCommandsQuery>,
|
|
): Promise<RESTGetAPIApplicationGuildCommandsResult>;
|
|
post(
|
|
args: RestArguments<ProxyRequestMethod.Post, RESTPostAPIApplicationGuildCommandsJSONBody>,
|
|
): Promise<RESTPostAPIApplicationGuildCommandsResult>;
|
|
put(
|
|
args?: RestArguments<ProxyRequestMethod.Put, RESTPutAPIApplicationGuildCommandsJSONBody>,
|
|
): Promise<RESTPutAPIApplicationGuildCommandsResult>;
|
|
permissions: {
|
|
get(
|
|
args?: RestArguments<ProxyRequestMethod.Get>,
|
|
): Promise<RESTGetAPIGuildApplicationCommandsPermissionsResult>;
|
|
// put(args?: RestArguments<ProxyRequestMethod.Put, RESTPutAPIGuildApplicationCommandsPermissionsJSONBody>): Promise<RESTPutAPIGuildApplicationCommandsPermissionsResult>
|
|
};
|
|
(
|
|
id: string,
|
|
): {
|
|
get(args?: RestArguments<ProxyRequestMethod.Get>): Promise<RESTGetAPIApplicationGuildCommandResult>;
|
|
patch(
|
|
args: RestArguments<ProxyRequestMethod.Patch, RESTPatchAPIApplicationGuildCommandJSONBody>,
|
|
): Promise<RESTPatchAPIApplicationGuildCommandResult>;
|
|
delete(args?: RestArguments<ProxyRequestMethod.Delete>): Promise<never>;
|
|
permissions: {
|
|
get(
|
|
args?: RestArguments<ProxyRequestMethod.Get>,
|
|
): Promise<RESTGetAPIGuildApplicationCommandsPermissionsResult>;
|
|
put(
|
|
args?: RestArguments<ProxyRequestMethod.Put, RESTPutAPIApplicationCommandPermissionsJSONBody>,
|
|
): Promise<RESTPutAPIGuildApplicationCommandsPermissionsResult>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
commands: {
|
|
get(
|
|
args?: RestArguments<ProxyRequestMethod.Get, RESTGetAPIApplicationCommandsQuery>,
|
|
): Promise<RESTGetAPIApplicationCommandsResult>;
|
|
post(
|
|
args: RestArguments<ProxyRequestMethod.Post, RESTPostAPIApplicationCommandsJSONBody>,
|
|
): Promise<RESTPostAPIApplicationCommandsResult>;
|
|
put(
|
|
args?: RestArguments<ProxyRequestMethod.Put, RESTPutAPIApplicationCommandsJSONBody>,
|
|
): Promise<RESTPutAPIApplicationCommandsResult>;
|
|
(
|
|
id: string,
|
|
): {
|
|
get(args?: RestArguments<ProxyRequestMethod.Get>): Promise<RESTGetAPIApplicationCommandResult>;
|
|
patch(
|
|
args: RestArguments<ProxyRequestMethod.Patch, RESTPatchAPIApplicationCommandJSONBody>,
|
|
): Promise<RESTPatchAPIApplicationCommandResult>;
|
|
delete(args?: RestArguments<ProxyRequestMethod.Delete>): Promise<never>;
|
|
};
|
|
};
|
|
'role-connections': {
|
|
metadata: {
|
|
get(args?: RestArguments<ProxyRequestMethod.Get>): Promise<RESTGetAPIApplicationRoleConnectionMetadataResult>;
|
|
put(
|
|
args: RestArguments<ProxyRequestMethod.Put, RESTPutAPIApplicationRoleConnectionMetadataJSONBody>,
|
|
): Promise<RESTPutAPIApplicationRoleConnectionMetadataResult>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|