remove: deprecated message#embed field

This commit is contained in:
ITOH
2021-06-19 17:13:44 +02:00
parent 43d933908f
commit 0e020fdcd8
4 changed files with 0 additions and 20 deletions
-5
View File
@@ -34,11 +34,6 @@ export async function sendMessage(channelId: bigint, content: string | CreateMes
const requiredPerms: Set<PermissionStrings> = new Set(["SEND_MESSAGES", "VIEW_CHANNEL"]);
if (content.tts) requiredPerms.add("SEND_TTS_MESSAGES");
// TODO: v12 remove
if (content.embed) {
content.embeds = [content.embed, ...(content.embeds || [])];
content.embed = undefined;
}
if (content.embeds?.length) {
requiredPerms.add("EMBED_LINKS");
content.embeds?.splice(10);