Skip to content
Snippets Groups Projects
Commit 12ca47c4 authored by Benedikt Magnus's avatar Benedikt Magnus
Browse files

Fixed Discord attachements.

parent 9ce429c7
No related branches found
No related tags found
No related merge requests found
......@@ -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))
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment