mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-11-03 08:14:28 -05:00
Fixed .exexport, .savechat, and .quoteexport, closes #358
This commit is contained in:
@@ -89,7 +89,7 @@ public static class StringExtensions
|
|||||||
public static async Task<Stream> ToStream(this string str)
|
public static async Task<Stream> ToStream(this string str)
|
||||||
{
|
{
|
||||||
var ms = new MemoryStream();
|
var ms = new MemoryStream();
|
||||||
await using var sw = new StreamWriter(ms);
|
var sw = new StreamWriter(ms);
|
||||||
await sw.WriteAsync(str);
|
await sw.WriteAsync(str);
|
||||||
await sw.FlushAsync();
|
await sw.FlushAsync();
|
||||||
ms.Position = 0;
|
ms.Position = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user