Skip to content

Commit 2d46031

Browse files
committed
✨ Add endpoints for polls
1 parent c3327ad commit 2d46031

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Discord/Endpoint.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@ class Endpoint
8080
public const CHANNEL_THREADS_ARCHIVED_PRIVATE = self::CHANNEL_THREADS.'/archived/private';
8181
// GET
8282
public const CHANNEL_THREADS_ARCHIVED_PRIVATE_ME = self::CHANNEL.'/users/@me/threads/archived/private';
83+
// GET
84+
public const CHANNEL_POLLS = self::CHANNEL.'/polls';
85+
// GET
86+
public const CHANNEL_POLL = self::CHANNEL.'/polls/:message_id';
87+
// GET
88+
public const CHANNEL_POLL_ANSWERS = self::CHANNEL_POLL.'/answers/:answer_id';
89+
// POST
90+
public const CHANNEL_POLL_END = self::CHANNEL_POLL.'/expire';
8391

8492
// GET, PATCH, DELETE
8593
public const THREAD = 'channels/:thread_id';

0 commit comments

Comments
 (0)