mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
vars and target-typed new
This commit is contained in:
@@ -33,7 +33,7 @@ public class PollRunner
|
||||
return false;
|
||||
|
||||
// has to be an integer
|
||||
if (!int.TryParse(msg.Content, out int vote))
|
||||
if (!int.TryParse(msg.Content, out var vote))
|
||||
return false;
|
||||
--vote;
|
||||
if (vote < 0 || vote >= Poll.Answers.Count)
|
||||
|
Reference in New Issue
Block a user