public override async Task OnCommand(CommandArguments command) { if (command.Message.Length == 0 || !uint.TryParse(command.Message, out var depotId)) { command.Reply($"Usage:{Colors.OLIVE} depot <depotid>"); return; } await using var db = await Database.GetConnectionAsync(); var depot = await db.QueryFirstOrDefaultAsync <Depot>("SELECT `DepotID`, `Name` FROM `Depots` WHERE `DepotID` = @depotId", new { depotId }); if (depot == default) { command.Reply($"Unknown DepotID: {Colors.BLUE}{depotId}"); return; } command.Reply($"{Colors.BLUE}{Utils.RemoveControlCharacters(depot.Name)}{Colors.NORMAL} -{Colors.DARKBLUE} {SteamDB.GetDepotUrl(depot.DepotID)}"); }