Skip to content

Commit d39f372

Browse files
committed
Invite is_nickname_changeable
1 parent 1a5e14e commit d39f372

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Discord/Parts/Channel/Invite.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
* @property Channel $channel The partial channel that the invite is for.
3838
* @property string|null $channel_id
3939
* @property User|null $inviter The user that created the invite.
40+
* @property bool|null $is_nickname_changeable A member's ability to change their nickname by default, returned from the `GET /invites/<code>` endpoint when `with_permissions` is `true`
4041
* @property int|null $target_type The type of target for this voice channel invite.
4142
* @property User|null $target_user The user whose stream to display for this voice channel stream invite.
4243
* @property Application|null $target_application The partial embedded application to open for this voice channel embedded application invite.
@@ -70,6 +71,7 @@ class Invite extends Part implements Stringable
7071
'guild',
7172
'channel',
7273
'inviter',
74+
'is_nickname_changeable',
7375
'target_type',
7476
'target_user',
7577
'target_application',

src/Discord/Repository/Channel/InviteRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
* @method Invite|null freshen(array $queryparams = [])
3535
* Optional Query Parameters:
3636
* - with_counts? (boolean): Whether the invite should contain approximate member counts.
37-
* - with_expiration? (boolean): Whether the invite should contain the expiration date.
3837
* - guild_scheduled_event_id? (snowflake): The guild scheduled event to include with the invite.
38+
* - with_permissions? (boolean): whether the invite should contain the `is_nickname_changeable` field.
3939
*/
4040
class InviteRepository extends AbstractRepository
4141
{

0 commit comments

Comments
 (0)