import type { Identify, OmitInsert } from '../../common'; import type { APIThreadChannel, RESTDeleteAPIAutoModerationRuleResult, RESTDeleteAPIGuildBanResult, RESTDeleteAPIGuildEmojiResult, RESTDeleteAPIGuildIntegrationResult, RESTDeleteAPIGuildMemberResult, RESTDeleteAPIGuildMemberRoleResult, RESTDeleteAPIGuildResult, RESTDeleteAPIGuildRoleResult, RESTDeleteAPIGuildScheduledEventResult, RESTDeleteAPIGuildStickerResult, RESTDeleteAPIGuildTemplateResult, RESTGetAPIAuditLogQuery, RESTGetAPIAuditLogResult, RESTGetAPIAutoModerationRuleResult, RESTGetAPIAutoModerationRulesResult, RESTGetAPICurrentUserVoiceState, RESTGetAPIGuildBanResult, RESTGetAPIGuildBansQuery, RESTGetAPIGuildBansResult, RESTGetAPIGuildChannelsResult, RESTGetAPIGuildEmojiResult, RESTGetAPIGuildEmojisResult, RESTGetAPIGuildIntegrationsResult, RESTGetAPIGuildInvitesResult, RESTGetAPIGuildMemberResult, RESTGetAPIGuildMembersQuery, RESTGetAPIGuildMembersResult, RESTGetAPIGuildMembersSearchQuery, RESTGetAPIGuildMembersSearchResult, RESTGetAPIGuildPreviewResult, RESTGetAPIGuildPruneCountQuery, RESTGetAPIGuildPruneCountResult, RESTGetAPIGuildQuery, RESTGetAPIGuildResult, RESTGetAPIGuildRoleResult, RESTGetAPIGuildRolesResult, RESTGetAPIGuildScheduledEventQuery, RESTGetAPIGuildScheduledEventResult, RESTGetAPIGuildScheduledEventUsersQuery, RESTGetAPIGuildScheduledEventUsersResult, RESTGetAPIGuildScheduledEventsQuery, RESTGetAPIGuildScheduledEventsResult, RESTGetAPIGuildStickerResult, RESTGetAPIGuildStickersResult, RESTGetAPIGuildTemplatesResult, RESTGetAPIGuildThreadsResult, RESTGetAPIGuildVanityUrlResult, RESTGetAPIGuildVoiceRegionsResult, RESTGetAPIGuildWebhooksResult, RESTGetAPIGuildWelcomeScreenResult, RESTGetAPIGuildWidgetImageQuery, RESTGetAPIGuildWidgetImageResult, RESTGetAPIGuildWidgetJSONResult, RESTGetAPIGuildWidgetSettingsResult, RESTGetAPITemplateResult, RESTGetAPIUserVoiceState, RESTPatchAPIAutoModerationRuleJSONBody, RESTPatchAPIAutoModerationRuleResult, RESTPatchAPICurrentGuildMemberJSONBody, RESTPatchAPIGuildChannelPositionsJSONBody, RESTPatchAPIGuildChannelPositionsResult, RESTPatchAPIGuildEmojiJSONBody, RESTPatchAPIGuildEmojiResult, RESTPatchAPIGuildJSONBody, RESTPatchAPIGuildMemberJSONBody, RESTPatchAPIGuildMemberResult, RESTPatchAPIGuildResult, RESTPatchAPIGuildRoleJSONBody, RESTPatchAPIGuildRolePositionsJSONBody, RESTPatchAPIGuildRolePositionsResult, RESTPatchAPIGuildRoleResult, RESTPatchAPIGuildScheduledEventJSONBody, RESTPatchAPIGuildScheduledEventResult, RESTPatchAPIGuildStickerJSONBody, RESTPatchAPIGuildStickerResult, RESTPatchAPIGuildTemplateJSONBody, RESTPatchAPIGuildTemplateResult, RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody, RESTPatchAPIGuildVoiceStateCurrentMemberResult, RESTPatchAPIGuildVoiceStateUserJSONBody, RESTPatchAPIGuildVoiceStateUserResult, RESTPatchAPIGuildWelcomeScreenJSONBody, RESTPatchAPIGuildWelcomeScreenResult, RESTPatchAPIGuildWidgetSettingsJSONBody, RESTPatchAPIGuildWidgetSettingsResult, RESTPostAPIAutoModerationRuleJSONBody, RESTPostAPIAutoModerationRuleResult, RESTPostAPIGuildBulkBanJSONBody, RESTPostAPIGuildBulkBanResult, RESTPostAPIGuildChannelJSONBody, RESTPostAPIGuildChannelResult, RESTPostAPIGuildEmojiJSONBody, RESTPostAPIGuildEmojiResult, RESTPostAPIGuildPruneJSONBody, RESTPostAPIGuildPruneResult, RESTPostAPIGuildRoleJSONBody, RESTPostAPIGuildRoleResult, RESTPostAPIGuildScheduledEventJSONBody, RESTPostAPIGuildScheduledEventResult, RESTPostAPIGuildStickerFormDataBody, RESTPostAPIGuildStickerResult, RESTPostAPIGuildTemplatesJSONBody, RESTPostAPIGuildTemplatesResult, RESTPostAPIGuildsJSONBody, RESTPostAPIGuildsMFAJSONBody, RESTPostAPIGuildsMFAResult, RESTPostAPIGuildsResult, RESTPostAPITemplateCreateGuildJSONBody, RESTPostAPITemplateCreateGuildResult, RESTPutAPIGuildBanJSONBody, RESTPutAPIGuildBanResult, RESTPutAPIGuildMemberJSONBody, RESTPutAPIGuildMemberResult, RESTPutAPIGuildMemberRoleResult, RESTPutAPIGuildTemplateSyncResult, } from '../../types'; import type { ProxyRequestMethod } from '../Router'; import type { RestArguments } from '../api'; import type { RawFile } from '../shared'; export interface GuildRoutes { guilds: { post(args: RestArguments): Promise; templates(code: string): { get(args?: RestArguments): Promise; post( args: RestArguments, ): Promise; }; ( id: string, ): { get(args?: RestArguments): Promise; patch(args: RestArguments): Promise; delete(args?: RestArguments): Promise; webhooks: { get(args?: RestArguments): Promise; }; preview: { get(args?: RestArguments): Promise; }; 'audit-logs': { get(args?: RestArguments): Promise; }; 'auto-moderation': { rules: { get(args?: RestArguments): Promise; post( args: RestArguments, ): Promise; ( id: string, ): { get(args?: RestArguments): Promise; patch( args: RestArguments, ): Promise; delete(args?: RestArguments): Promise; }; }; }; channels: { get(args?: RestArguments): Promise; post( args: RestArguments, ): Promise; patch( args: RestArguments, ): Promise; }; members: { get( args?: RestArguments, ): Promise; search: { get( args: RestArguments, ): Promise; }; '@me': { patch( args: RestArguments, ): Promise; }; ( id: string, ): { get(args?: RestArguments): Promise; put( args?: RestArguments, ): Promise; patch( args: RestArguments, ): Promise; delete(args?: RestArguments): Promise; roles(id: string): { put(args?: RestArguments): Promise; delete(args?: RestArguments): Promise; }; }; }; threads: { active: { get( args?: RestArguments, ): Promise }>>; }; }; roles: { get(args?: RestArguments): Promise; post( args: RestArguments, ): Promise; patch( args: RestArguments, ): Promise; ( id: string, ): { get(args?: RestArguments): Promise; patch( args: RestArguments, ): Promise; delete(args?: RestArguments): Promise; }; }; bans: { get(args?: RestArguments): Promise; ( userId: string, ): { get(args?: RestArguments): Promise; put( args?: RestArguments, ): Promise; delete(args?: RestArguments): Promise; }; }; 'bulk-bans': { post( args: RestArguments, ): Promise; }; mfa: { post( args: RestArguments, ): Promise; }; prune: { get( args: RestArguments, ): Promise; post( args: RestArguments, ): Promise; }; regions: { get(args?: RestArguments): Promise; }; invites: { get(args?: RestArguments): Promise; }; widget: { get(args?: RestArguments): Promise; patch( args: RestArguments, ): Promise; }; 'widget.json': { get(args?: RestArguments): Promise; }; 'widget.png': { get( args?: RestArguments, ): Promise; }; integrations: { get(args?: RestArguments): Promise; ( id: string, ): { delete(args?: RestArguments): Promise; }; }; 'vanity-url': { get(args?: RestArguments): Promise; }; 'welcome-screen': { get(args?: RestArguments): Promise; patch( args: RestArguments, ): Promise; }; // onboarding: { // get(args:RestArguments); // } emojis: { get(args?: RestArguments): Promise; post( args: RestArguments, ): Promise; ( id: string, ): { get(args?: RestArguments): Promise; patch( args: RestArguments, ): Promise; delete(args?: RestArguments): Promise; }; }; 'voice-states': { '@me': { patch( args: RestArguments, ): Promise; get(args?: RestArguments): Promise; }; ( userId: string, ): { patch( args: RestArguments, ): Promise; get(args?: RestArguments): Promise; }; }; stickers: { get(args?: RestArguments): Promise; post( args: RestArguments< ProxyRequestMethod.Post, Omit, object, OmitInsert[] >, ): Promise; ( id: string, ): { get(args?: RestArguments): Promise; patch( args: RestArguments, ): Promise; delete(args?: RestArguments): Promise; }; }; 'scheduled-events': { get( args?: RestArguments, ): Promise; post( args: RestArguments, ): Promise; ( id: string, ): { get( args?: RestArguments, ): Promise; patch( args: RestArguments, ): Promise; delete(args?: RestArguments): Promise; users: { get( args?: RestArguments, ): Promise; }; }; }; templates: { get(args?: RestArguments): Promise; post( args: RestArguments, ): Promise; ( code: string, ): { put(args?: RestArguments): Promise; patch( args: RestArguments, ): Promise; delete(args?: RestArguments): Promise; }; }; }; }; }