diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6032083..c444bee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,12 +12,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - - name: Setup .NET Core - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 6.0.x + - uses: actions/checkout@v3 - name: Replace tokens in appsettings uses: cschleiden/replace-tokens@v1 @@ -29,6 +24,11 @@ jobs: CONNECTION_STRING: ${{secrets.DB_CONNECTION_STRING}} BOT_TOKEN: ${{secrets.BOT_TOKEN}} + - name: Setup .NET Core + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 6.0.x + - name: Test run: dotnet test diff --git a/Kattbot/CommandHandlers/Images/DallePromptCommand.cs b/Kattbot/CommandHandlers/Images/DallePromptCommand.cs index 496a633..b395938 100644 --- a/Kattbot/CommandHandlers/Images/DallePromptCommand.cs +++ b/Kattbot/CommandHandlers/Images/DallePromptCommand.cs @@ -70,7 +70,7 @@ protected override async Task Handle(DallePromptCommand request, CancellationTok .WithUrl("https://www.craiyon.com/"); var mb = new DiscordMessageBuilder() - .WithFile(fileName, combinedImage.MemoryStream) + .AddFile(fileName, combinedImage.MemoryStream) .WithEmbed(eb) .WithContent($"There you go {request.Ctx.Member?.Mention ?? "Unknown user"}"); diff --git a/Kattbot/CommandHandlers/Images/GetBigEmote.cs b/Kattbot/CommandHandlers/Images/GetBigEmote.cs index 1298221..a802174 100644 --- a/Kattbot/CommandHandlers/Images/GetBigEmote.cs +++ b/Kattbot/CommandHandlers/Images/GetBigEmote.cs @@ -88,8 +88,7 @@ protected override async Task Handle(GetBigEmoteRequest request, CancellationTok var fileName = hasScaleFactor ? "bigger" : "big"; - responseBuilder - .WithFile($"{fileName}.{fileExtension}", imageStream); + responseBuilder.AddFile($"{fileName}.{fileExtension}", imageStream); await ctx.RespondAsync(responseBuilder); }