mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-10 07:47:53 +00:00
feat: add support for attachment descriptions
This commit is contained in:
parent
36acb5bae6
commit
0ca356eec3
7 changed files with 25 additions and 7 deletions
|
|
@ -113,7 +113,7 @@ namespace PluralKit.Bot
|
|||
|
||||
var msg = await ctx.Rest.CreateMessage(dm.Id,
|
||||
new MessageRequest { Content = $"{Emojis.Success} Here you go!" },
|
||||
new[] { new MultipartFile("system.json", stream) });
|
||||
new[] { new MultipartFile("system.json", stream, null) });
|
||||
await ctx.Rest.CreateMessage(dm.Id, new MessageRequest { Content = $"<{msg.Attachments[0].Url}>" });
|
||||
|
||||
// If the original message wasn't posted in DMs, send a public reminder
|
||||
|
|
|
|||
|
|
@ -189,7 +189,7 @@ namespace PluralKit.Bot
|
|||
await ctx.Rest.CreateMessage(
|
||||
ctx.Channel.Id,
|
||||
new MessageRequest { Content = $"{Emojis.Warn} Message contains codeblocks, raw source sent as an attachment." },
|
||||
new[] { new MultipartFile("message.txt", stream) });
|
||||
new[] { new MultipartFile("message.txt", stream, null) });
|
||||
}
|
||||
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue