Kowlin
bae0cdf2a7
Add SPAMMER user flag
3 years ago
jack1142
820bde99e1
Add BOT_HTTP_INTERACTIONS user flag
Adds UserFlags.bot_http_interactions and PublicUserFlags.bot_http_interactions
See: discord/discord-api-docs#3903
3 years ago
jack1142
423fd1bc26
Add SystemChannelFlags.join_notification_replies
Add SUPPRESS_JOIN_NOTIFICATION_REPLIES system channel flag
See: discord/discord-api-docs#3977
3 years ago
dolfies
332e408658
various changes; prepare for scheduled event support
3 years ago
dolfies
dcacd2fc22
Add missing flags
3 years ago
dolfies
de416202e9
Change wording and add ..versionaddeds
3 years ago
dolfies
8e23a2a287
Add missing permissions and flags
3 years ago
dolfies
a1a773c6bb
Remove unused imports
3 years ago
dolfies
ce67d39a78
Add private user flags & join notification replies system channel flag
3 years ago
dolfies
4006145d26
Implement 3 flags
3 years ago
dolfies
ccd971527f
Finish docs?
4 years ago
dolfies
3429980d0c
Migrate
4 years ago
dolfies
9c5e4882ef
Initial de-botting
4 years ago
Imayhaveborkedit
f586f4dfbd
Clarify connect() requires Intents.voice_states
4 years ago
Bryan Forbes
79bae47992
flag_value should not be a generic class
Since there is no generic information in `flag_value.__init__()`,
`flag_value` descriptors get stored as `flag_value[<nothing>]` in mypy
strict mode and then the `__get__` overloads never match. This leads to
errors when using things like `permissions_instance.embed_links` since
`<nothing>` never matches `Permissions`.
The generic inheritance isn't needed at all since the type information
we care about comes from the call site of `__get__` and not the
instantiation of the descriptor.
4 years ago
Rapptz
6beef898c6
Rename instances of nitro to premium
4 years ago
Nadir Chowdhury
60d82cf908
implement guild stickers
4 years ago
Nadir Chowdhury
262a50196d
fix typo in ephemeral function definition
4 years ago
apple502j
717e723a36
Update intents docs to reflect presence update changes
4 years ago
Rapptz
17268c3368
Add MessageFlags.ephemeral
4 years ago
Rapptz
be5603141e
Remove slots from flags
Fix #7159
4 years ago
Rapptz
88620d052a
Typehint permissions
4 years ago
Rapptz
68c7c538f5
First pass at preliminary thread support
This is missing a lot of functionality right now, such as two gateway
events and all the HTTP CRUD endpoints.
4 years ago
Nadir Chowdhury
ab6d592f8c
Add support for integration create/update/delete events
4 years ago
Stanisław Jelnicki
65439732b3
Add Discord Certified Moderator user flag
4 years ago
pikaninja
1d4e339141
Add get_user to the things intents.members affects
4 years ago
Nadir Chowdhury
631a0b1e13
Add support for ApplicationFlags
4 years ago
Rapptz
9eaf1e85e4
Rewrite Asset design
This is a breaking change.
This does the following transformations, assuming `asset` represents
an asset type.
Object.is_asset_animated() => Object.asset.is_animated()
Object.asset => Object.asset.key
Object.asset_url => Object.asset_url
Object.asset_url_as => Object.asset.replace(...)
Since the asset type now requires a key (or hash, if you will),
Emoji had to be flattened similar to how Attachment was done since
these assets are keyed solely ID.
Emoji.url (Asset) => Emoji.url (str)
Emoji.url_as => removed
Emoji.url.read => Emoji.read
Emoji.url.save => Emoji.save
This transformation was also done to PartialEmoji.
4 years ago
TheOneMusic
d21e65ce47
Add SystemChannelFlags.guild_reminder_notifications
4 years ago
Nadir Chowdhury
f1fac96e33
Remove `private_channel_(delete/create)` events
4 years ago
Rapptz
7afcacc9a1
Remove MemberCacheFlags.online
v8 no longer gives enough data for this to be possible
4 years ago
Nadir Chowdhury
83fe98c20d
Add typing for flags
4 years ago
Rapptz
9d39b135f4
Modernize code to use f-strings
This also removes the encoding on the top, since Python 3 does it by
default. It also changes some methods to use `yield from`.
4 years ago
Steve C
7836046621
Mark User.avatar_url as attribute in Intents.members docstring
The line currently comes out to
`User.avatar (User.avatar_url() and User.avatar_url_as())`
but `User.avatar_url` is not callable.
4 years ago
Nihaal Sangha
69bdc3a184
Change copyright year to present
4 years ago
Rapptz
7a3a571e0a
Don't store a user cache if there's no member intent or cache is off
Without a cache or member intent the user cache can get out of date
with no events to update the underlying user in the member object.
Ref: #6034
4 years ago
Rapptz
b91ddc6f4e
Mark intent alias flags as actual aliases to skip them in __iter__
Fix #5945
5 years ago
Rapptz
e4d7f44aa5
Make Intent class creation more intuitive
5 years ago
Rapptz
59d514fcdf
More intent related documentation
5 years ago
Sebastian Law
2974663367
Fix typos in Intents documentation
5 years ago
apple502j
0ebf5b2fa7
Add support for flag alias
5 years ago
Rapptz
2e06239d3c
Add documentation for gateway intents
5 years ago
Muhammad Hamza
11aaa03ec2
Fix presence intent docstring
5 years ago
Rapptz
213f55ffc7
Disable voice cache in weird intent configurations.
5 years ago
Rapptz
e644a5a060
Fix up wording in MemberCacheFlags exception
5 years ago
Rapptz
8d5c05ed20
Default MemberCacheFlags based on intents
5 years ago
Rapptz
23ae084b8c
Allow finer grained control over the member cache.
5 years ago
Rapptz
e10942a9ee
Add versionadded for intents enum
5 years ago
Rapptz
bec34c1110
Explicitly disable the members presence by default
5 years ago
Rapptz
a6381dcf77
Add support for guild intents
5 years ago