Skip to content

Commit

Permalink
move and rename
Browse files Browse the repository at this point in the history
  • Loading branch information
key2peace authored Oct 22, 2023
1 parent dc1b478 commit 629e65f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/Discord/Parts/Guild/Guild.php
Original file line number Diff line number Diff line change
Expand Up @@ -441,18 +441,6 @@ public function getInvites(): ExtendedPromiseInterface
});
}

/**
* Returns the guilds entitlements.
*
* @link https://discord.com/developers/docs/monetization/entitlements#list-entitlements
*
* @return ExtendedPromiseInterface<Collection|Invite[]>
*/
public function getEntitlements(array $options = []): ExtendedPromiseInterface
{
// TODO: Use the actual lising query
return $this->discord->application->entitlements->get('guild_id', $this->id);
}
/**
* Unbans a member. Alias for `$guild->bans->unban($user)`.
*
Expand Down Expand Up @@ -1677,4 +1665,16 @@ public function createdTimestamp()
{
return \Discord\getSnowflakeTimestamp($this->id);
}

/**
* Returns the guilds entitlements for this application.
*
* @link https://discord.com/developers/docs/monetization/entitlements#list-entitlements
*
* @return ExtendedPromiseInterface<Collection|Invite[]>
*/
public function getMyApplicationEntitlement(): ExtendedPromiseInterface
{
return $this->discord->application->entitlements->get('guild_id', $this->id);
}
}

0 comments on commit 629e65f

Please sign in to comment.