Satisfy netf, I'm too lazy to add madness support for it now

This commit is contained in:
Archi 2023-01-29 23:00:35 +01:00
parent be8a441e2e
commit 4b5a75eebc
No known key found for this signature in database
GPG key ID: 6B138B4C64555AEA

View file

@ -45,7 +45,10 @@ public sealed class SignInWithSteamController : ArchiController {
[ProducesResponseType(typeof(GenericResponse), (int) HttpStatusCode.BadRequest)]
[ProducesResponseType(typeof(GenericResponse), (int) HttpStatusCode.ServiceUnavailable)]
public async Task<ActionResult<GenericResponse>> Post(string botName, [FromBody] SignInWithSteamRequest request) {
ArgumentException.ThrowIfNullOrEmpty(botName);
if (string.IsNullOrEmpty(botName)) {
throw new ArgumentNullException(nameof(botName));
}
ArgumentNullException.ThrowIfNull(request);
Bot? bot = Bot.GetBot(botName);