How to upload and send files with RevoltSharp
You can send file using these methods below
// Extension await Context.Channel.SendFileAsync("/image.png", "Nice image");
// Manually FileAttachment FileAttachment = await Context.Channel.UploadFileAsync("/image.png", UploadFileType.Attachment); await Context.Channel.SendMessageAsync("Nice image", attachments: new string[] { FileAttachment.Id });
Last updated 1 year ago