Skip to content

Commit e55864e

Browse files
committed
use method call instead of mutator magic
1 parent 862e0a1 commit e55864e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Discord/Parts/Channel/Channel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,7 +1416,7 @@ public function getCreatableAttributes(): array
14161416
// Marked "Channel Type: All" in documentation
14171417
$attr += $this->makeOptionalAttributes([
14181418
'type' => $this->type,
1419-
'permission_overwrites' => $this->permission_overwrites,
1419+
'permission_overwrites' => $this->getPermissionOverwritesAttribute(),
14201420
'position' => $this->position,
14211421
]);
14221422

@@ -1509,7 +1509,7 @@ public function getUpdatableAttributes(): array
15091509
$attr = [
15101510
'name' => $this->name,
15111511
'position' => $this->position,
1512-
'permission_overwrites' => $this->permission_overwrites,
1512+
'permission_overwrites' => $this->getPermissionOverwritesAttribute(),
15131513
];
15141514

15151515
switch ($this->type) {

0 commit comments

Comments
 (0)