diff --git a/scripts/wichtelbot/endpoint/implementations/discord/discordUtils.ts b/scripts/wichtelbot/endpoint/implementations/discord/discordUtils.ts index 7f7a003b9de2332891b9cb13a506e4162fdae0b7..847a742392cca153cb09553c9df1cb90111c0f8a 100644 --- a/scripts/wichtelbot/endpoint/implementations/discord/discordUtils.ts +++ b/scripts/wichtelbot/endpoint/implementations/discord/discordUtils.ts @@ -34,8 +34,11 @@ export abstract class DiscordUtils if (typeof additions === 'string') { - const attachment = new Discord.MessageAttachment(additions); - messageOptions.attachments = [attachment]; + messageOptions.files = [ + { + attachment: additions, + }, + ]; } else if (this.isComponents(additions)) {