public async Task Reg(string timeZone) { int time; if (!int.TryParse(timeZone, out time)) { await Context.Channel.SendMessageAsync("Wrong UTC format"); return; } if (time < -12 || time > 14) { await Context.Channel.SendMessageAsync("UTC ranging from UTC−12:00 to UTC+14:00"); return; } await _zones.ModifyUserTimeZone(Context.Guild.Id, Context.User.Id, time); await Context.Channel.SendMessageAsync($"{Context.User.Username}#{Context.User.Discriminator} time zone set to: {time} UTC"); }