discord-api-types
Version:
Discord API typings that are kept up to date for use in bot library creation.
39 lines • 975 B
TypeScript
import type { Snowflake } from '../globals';
import type { APIBaseMessageNoChannel, APIMessageMentions, APIUser } from '../v9';
import type { RelationshipType, RPCAPIMessageParsedContentMention, RPCAPIMessageParsedContentText } from './common';
export * from './common';
/**
* @unstable
*/
export interface Relationship {
/**
* The id of the user
*/
id: Snowflake;
/**
* Relationship type
*/
type: RelationshipType;
/**
* User
*/
user: APIUser;
}
/**
* @unstable
*/
export interface RPCAPIMessage extends APIBaseMessageNoChannel, APIMessageMentions {
/**
* The nickname of the user who sent the message
*/
nick?: string;
/**
* The color of the author's name
*/
author_color?: number;
/**
* The content of the message parsed into an array
*/
content_parsed: (RPCAPIMessageParsedContentMention | RPCAPIMessageParsedContentText)[];
}
//# sourceMappingURL=v9.d.ts.map