Skip to content

Commit fc90b58

Browse files
authored
Add several missing in Endpoint.php (#6)
* Add stickers missing in Endpoint.php Ref: https://discord.com/developers/docs/resources/sticker Will be required for DiscordPHP to manage guild stickers * missing comment * Add stage-instance missing in Endpoint.php * Added welcome screen in Endpoint.php Added missing welcome-screen endpoint https://discord.com/developers/docs/resources/guild#get-guild-welcome-screen * Add missing stage voice state in Endpoint.php Add missing PATCH endpoints for Guild Voice State for Current User (@me) & specific User
1 parent 1363e9b commit fc90b58

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/Discord/Endpoint.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,29 @@ class Endpoint
153153
public const GUILD_WIDGET = self::GUILD.'/widget.json';
154154
// GET
155155
public const GUILD_WIDGET_IMAGE = self::GUILD.'/widget.png';
156+
// GET, PATCH
157+
public const GUILD_WELCOME_SCREEN = self::GUILD.'/welcome-screen';
158+
// PATCH
159+
public const GUILD_USER_CURRENT_VOICE_STATE = self::GUILD.'/voice-states/@me';
160+
// PATCH
161+
public const GUILD_USER_VOICE_STATE = self::GUILD.'/voice-states/:user_id';
156162
// GET
157163
public const GUILD_VANITY_URL = self::GUILD.'/vanity-url';
158164
// GET, PATCH
159165
public const GUILD_MEMBERSHIP_SCREENING = self::GUILD.'/member-verification';
160166
// GET
161167
public const GUILD_WEBHOOKS = self::GUILD.'/webhooks';
162168

169+
// GET, POST
170+
public const GUILD_STICKERS = self::GUILD.'/stickers';
171+
// GET, PATCH, DELETE
172+
public const GUILD_STICKER = self::GUILD.'/stickers/:sticker_id';
173+
174+
// GET
175+
public const STICKER = 'stickers/:sticker_id';
176+
// GET
177+
public const STICKER_PACKS = 'sticker-packs';
178+
163179
// GET, POST
164180
public const GUILD_SCHEDULED_EVENTS = self::GUILD.'/scheduled-events';
165181
// GET, PATCH, DELETE
@@ -170,6 +186,9 @@ class Endpoint
170186
// GET, DELETE
171187
public const INVITE = 'invites/:code';
172188

189+
// GET, PATCH, DELETE
190+
public const STAGE_INSTANCE = 'stage-instances/:channel_id';
191+
173192
// GET, PATCH
174193
public const USER_CURRENT = 'users/@me';
175194
// GET

0 commit comments

Comments
 (0)