Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/discord_api_types/rest/v6/user.ts

Up to date Discord API Typings, versioned by the API version
Go to Latest
File
import type { APIChannel, APIConnection, APIUser, GuildFeature } from '../../payloads/v6/mod.ts';
/** * https://discord.com/developers/docs/resources/user#get-current-user * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export type RESTGetAPICurrentUserResult = APIUser;
/** * https://discord.com/developers/docs/resources/user#get-user * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export type RESTGetAPIUserResult = APIUser;
/** * https://discord.com/developers/docs/resources/user#modify-current-user * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export interface RESTPatchAPICurrentUserJSONBody { username?: string; avatar?: string | null;}
/** * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export type RESTPatchAPICurrentUserResult = APIUser;
/** * https://discord.com/developers/docs/resources/user#get-current-user-guilds * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export interface RESTGetAPICurrentUserGuildsQuery { before?: string; after?: string; limit?: number;}
/** * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export interface RESTAPIPartialCurrentUserGuild { id: string; name: string; icon: string | null; owner: boolean; features: GuildFeature[]; /** * @deprecated Use `permissions_new` instead */ permissions: number; permissions_new: string;}
/** * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export type RESTGetAPICurrentUserGuildsResult = RESTAPIPartialCurrentUserGuild[];
/** * https://discord.com/developers/docs/resources/user#leave-guild * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export type RESTDeleteAPICurrentUserGuildResult = never;
/** * https://discord.com/developers/docs/resources/user#create-dm * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export interface RESTPostAPICurrentUserCreateDMChannelJSONBody { recipient_id: string;}
/** * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export type RESTPostAPICurrentUserCreateDMChannelResult = APIChannel;
/** * https://discord.com/developers/docs/resources/user#get-user-connections * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8. */export type RESTGetAPICurrentUserConnectionsResult = APIConnection[];