@@ -87,7 +87,7 @@ |
||
| 87 | 87 | foreach ($roles as $role) {
|
| 88 | 88 | if (in_array($role->name, $adminRoles, true)) {
|
| 89 | 89 | $member = $guild->members->get('id', $botID);
|
| 90 | - $nick = (string)$data['messageString']; |
|
| 90 | + $nick = (string) $data['messageString']; |
|
| 91 | 91 | $member->setNickname($nick); |
| 92 | 92 | |
| 93 | 93 | $msg = "Bot nickname changed to **{$nick}** by {$msgData['message']['from']}";
|
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | $roles = $member->roles; |
| 88 | 88 | foreach ($roles as $role) { |
| 89 | 89 | if (in_array($role->name, $adminRoles, true)) { |
| 90 | - $newGame = (string)$data['messageString']; |
|
| 90 | + $newGame = (string) $data['messageString']; |
|
| 91 | 91 | $game = $this->discord->factory(Game::class, [ |
| 92 | 92 | 'name' => $newGame, |
| 93 | 93 | ]); |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | $roles = $member->roles; |
| 87 | 87 | foreach ($roles as $role) { |
| 88 | 88 | if (in_array($role->name, $adminRoles, true)) { |
| 89 | - $logType = (string)$data['messageString']; |
|
| 89 | + $logType = (string) $data['messageString']; |
|
| 90 | 90 | if ($logType == 'log') { |
| 91 | 91 | $filePath = __DIR__ . '/../../../log/dramielLog.log'; |
| 92 | 92 | } elseif ($logType == 'error') { |