Fixed around 140 wrong namings and other refactorings which were marked as warnings

This commit is contained in:
Kwoth
2022-01-08 11:51:41 +01:00
parent a6330119e8
commit 2ce3262d59
109 changed files with 698 additions and 760 deletions

View File

@@ -68,10 +68,10 @@ public partial class Gambling
if (num > 10)
num = 10;
var (ImageStream, ToSend) = await InternalDraw(num, ctx.Guild.Id);
await using (ImageStream)
var (imageStream, toSend) = await InternalDraw(num, ctx.Guild.Id);
await using (imageStream)
{
await ctx.Channel.SendFileAsync(ImageStream, num + " cards.jpg", ToSend);
await ctx.Channel.SendFileAsync(imageStream, num + " cards.jpg", toSend);
}
}
@@ -83,10 +83,10 @@ public partial class Gambling
if (num > 10)
num = 10;
var (ImageStream, ToSend) = await InternalDraw(num);
await using (ImageStream)
var (imageStream, toSend) = await InternalDraw(num);
await using (imageStream)
{
await ctx.Channel.SendFileAsync(ImageStream, num + " cards.jpg", ToSend);
await ctx.Channel.SendFileAsync(imageStream, num + " cards.jpg", toSend);
}
}