Skip to content

feat: add polls intents #1706

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions interactions/models/discord/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,15 @@ class Intents(DiscordIntFlag): # type: ignore
GUILD_SCHEDULED_EVENTS = 1 << 16
AUTO_MODERATION_CONFIGURATION = 1 << 20
AUTO_MODERATION_EXECUTION = 1 << 21
GUILD_MESSAGE_POLLS = 1 << 24
DIRECT_MESSAGE_POLLS = 1 << 25

# Shortcuts/grouping/aliases
MESSAGES = GUILD_MESSAGES | DIRECT_MESSAGES
REACTIONS = GUILD_MESSAGE_REACTIONS | DIRECT_MESSAGE_REACTIONS
TYPING = GUILD_MESSAGE_TYPING | DIRECT_MESSAGE_TYPING
AUTO_MOD = AUTO_MODERATION_CONFIGURATION | AUTO_MODERATION_EXECUTION
POLLS = GUILD_MESSAGE_POLLS | DIRECT_MESSAGE_POLLS

PRIVILEGED = GUILD_PRESENCES | GUILD_MEMBERS | MESSAGE_CONTENT
NON_PRIVILEGED = AntiFlag(PRIVILEGED)
Expand All @@ -233,14 +236,17 @@ def new(
guild_voice_states=False,
guild_presences=False,
guild_messages=False,
guild_message_polls=False,
guild_message_reactions=False,
guild_message_typing=False,
direct_messages=False,
direct_message_polls=False,
direct_message_reactions=False,
direct_message_typing=False,
message_content=False,
guild_scheduled_events=False,
messages=False,
polls=False,
reactions=False,
typing=False,
privileged=False,
Expand Down
Loading