diff --git a/PluralKit.Bot/Commands/Token.cs b/PluralKit.Bot/Commands/Token.cs index d2cb3720..c7345fd6 100644 --- a/PluralKit.Bot/Commands/Token.cs +++ b/PluralKit.Bot/Commands/Token.cs @@ -36,8 +36,7 @@ namespace PluralKit.Bot private async Task MakeAndSetNewToken(PKSystem system) { var patch = new SystemPatch {Token = StringUtils.GenerateToken()}; - await _db.Execute(conn => conn.UpdateSystem(system.Id, patch)); - + system = await _db.Execute(conn => conn.UpdateSystem(system.Id, patch)); return system.Token; }