swc/bundler/tests/.cache/deno/3acbb1195f409102047e7de6c0fced33532eb5de.ts
강동윤 d60c3242af
fix(swc): Fix bugs (#1739)
swc_bundler:
 - Fix cycle detection for complex circular imports. (denoland/deno#10752)

swc_ecma_transforms_typescript:
 - Allow using large values for an enum variant.
2021-05-25 14:30:17 +09:00

30 lines
1.2 KiB
TypeScript

// Loaded from https://deno.land/x/discordeno@11.0.0-rc.2/src/types/messages/create_message.ts
import { Embed } from "../embeds/embed.ts";
import { AllowedMentions } from "../messages/allowed_mentions.ts";
import { MessageReference } from "../messages/message_reference.ts";
import { FileContent } from "../discordeno/file_content.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
import { MessageComponents } from "./components/message_components.ts";
export interface CreateMessage {
/** The message contents (up to 2000 characters) */
content?: string;
/** true if this is a TTS message */
tts?: boolean;
/** Embedded `rich` content */
embed?: Embed;
/** Allowed mentions for the message */
allowedMentions?: AllowedMentions;
/** Include to make your message a reply */
messageReference?: MessageReference;
/** The contents of the file being sent */
file?: FileContent | FileContent[];
/** The components you would like to have sent in this message */
components?: MessageComponents;
}
/** https://discord.com/developers/docs/resources/channel#create-message */
export type DiscordCreateMessage = SnakeCasedPropertiesDeep<Omit<CreateMessage, "file">>;