DiscordApi
in package
Read onlyYes
FinalYes
Table of Contents
Properties
- $accept : string
- $baseUri : string
- $discordApiClient : HttpClientInterface
- $serializer : SerializerInterface
Methods
- __construct() : mixed
- getCurrentUserGuilds() : array<string|int, PartialGuild>
- withBearerToken() : DiscordApi
Properties
$accept
private
string
$accept
Attributes
- #[Autowire]
- $param: Parameters::DISCORD_API_CLIENT_ACCEPT
$baseUri
private
string
$baseUri
Attributes
- #[Autowire]
- $param: Parameters::DISCORD_API_CLIENT_BASE_URI
$discordApiClient
private
HttpClientInterface
$discordApiClient
$serializer
private
SerializerInterface
$serializer
Methods
__construct()
public
__construct(HttpClientInterface $discordApiClient, SerializerInterface $serializer, string $accept, string $baseUri) : mixed
Parameters
- $discordApiClient : HttpClientInterface
- $serializer : SerializerInterface
- $accept : string
- $baseUri : string
getCurrentUserGuilds()
public
getCurrentUserGuilds([int|string|null $before = null ][, int|string|null $after = null ][, int|null $limit = null ][, bool|null $withCounts = null ]) : array<string|int, PartialGuild>
Parameters
- $before : int|string|null = null
- $after : int|string|null = null
- $limit : int|null = null
- $withCounts : bool|null = null
Tags
Return values
array<string|int, PartialGuild>withBearerToken()
public
withBearerToken(string $token) : DiscordApi
Parameters
- $token : string