From 89088f1d245d26f91827186565c34c7ded0e43a9 Mon Sep 17 00:00:00 2001 From: PythonTryHard <31789326+PythonTryHard@users.noreply.github.com> Date: Sun, 19 May 2024 20:35:15 +0700 Subject: [PATCH] New poll endpoints --- hikari/internal/routes.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hikari/internal/routes.py b/hikari/internal/routes.py index 0de1038050..c4ba700d7c 100644 --- a/hikari/internal/routes.py +++ b/hikari/internal/routes.py @@ -340,6 +340,10 @@ def compile_to_file( POST_CHANNEL_WEBHOOKS: typing.Final[Route] = Route(POST, "/channels/{channel}/webhooks") GET_CHANNEL_WEBHOOKS: typing.Final[Route] = Route(GET, "/channels/{channel}/webhooks") +# Polls +GET_ANSWER_VOTERS: typing.Final[Route] = Route(GET, "/channels/{channel}/polls/{message}/answer/{answer}") +END_POLL: typing.Final[Route] = Route(POST, "/channels/{channel}/polls/{message}/expire") + # Reactions GET_REACTIONS: typing.Final[Route] = Route(GET, "/channels/{channel}/messages/{message}/reactions/{emoji}") DELETE_ALL_REACTIONS: typing.Final[Route] = Route(DELETE, "/channels/{channel}/messages/{message}/reactions")