+ public static function queueResult(Result $result) {
+ $cmd = new DiscordBotCommand();
+ $cmd->tournament_id = $result->round->tournament_id;
+ $cmd->command = 'result';
+ $cmd->parameters = [
+ 'round' => $result->round_id,
+ 'user' => $result->user_id,
+ ];
+ $cmd->status = 'pending';
+ $cmd->save();
+ }
+