Skip to content

Commit

Permalink
New poll endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
PythonTryHard committed May 19, 2024
1 parent 2c53e90 commit 89088f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hikari/internal/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 89088f1

Please sign in to comment.