Skip to content
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

feat: application role connections #1791

Merged
merged 41 commits into from
Feb 7, 2023
Merged
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
f52b491
feat: start of application role connection
plun1331 Nov 21, 2022
9554237
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 21, 2022
d4f6cb1
Merge branch 'master' into role-connections
Lulalaby Nov 22, 2022
b3bb0a6
Apply suggestions from code review
Lulalaby Nov 22, 2022
3626180
Merge branch 'master' into role-connections
plun1331 Nov 23, 2022
8459bf9
Merge branch 'master' into role-connections
plun1331 Nov 23, 2022
ba791d1
fix: type imports
plun1331 Nov 23, 2022
b6573dd
Merge branch 'master' into role-connections
Lulalaby Nov 30, 2022
bafba6c
Merge branch 'master' into role-connections
plun1331 Dec 1, 2022
929048f
Update http.py
plun1331 Dec 9, 2022
7ff181e
Update application_role_connection.py
plun1331 Dec 9, 2022
36e131f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 9, 2022
ed91252
Update application_role_connection.py
plun1331 Dec 9, 2022
2ac88db
Update client.py
plun1331 Dec 9, 2022
02b63ea
Merge branch 'master' into role-connections
plun1331 Dec 9, 2022
36b13f0
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 9, 2022
f1dcb85
Update CHANGELOG.md
plun1331 Dec 9, 2022
91993cc
Update CHANGELOG.md
plun1331 Dec 9, 2022
d77cf7e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 9, 2022
c15acd0
Update application_role_connection.py
plun1331 Dec 9, 2022
7f29c79
Update data_classes.rst
plun1331 Dec 9, 2022
5388ac5
Update enums.py
plun1331 Dec 9, 2022
aaddc94
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 9, 2022
04c626d
Update enums.rst
plun1331 Dec 9, 2022
3f64daa
Update application_role_connection.py
plun1331 Dec 9, 2022
0b3da5f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 9, 2022
df20619
Update client.py
plun1331 Dec 9, 2022
f03eade
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 9, 2022
40666dc
Update __init__.py
plun1331 Dec 9, 2022
e61d06d
Update __init__.py
plun1331 Dec 9, 2022
52bfcea
Update application_role_connection.py
plun1331 Dec 9, 2022
0274845
Merge branch 'master' into role-connections
Lulalaby Dec 12, 2022
2fcc9a0
Merge branch 'master' into role-connections
Lulalaby Dec 20, 2022
aca3f76
Merge branch 'master' into role-connections
Lulalaby Jan 5, 2023
bc6adc1
Update CHANGELOG.md
Lulalaby Jan 5, 2023
808c262
Merge branch 'master' into role-connections
Lulalaby Jan 5, 2023
0446ceb
Merge branch 'master' into role-connections
Lulalaby Jan 17, 2023
efb2ddb
Merge branch 'master' into role-connections
Lulalaby Jan 26, 2023
8d84668
Merge branch 'master' into role-connections
plun1331 Jan 30, 2023
fd391da
feat: add __repr__ and __str__
plun1331 Jan 30, 2023
69fbaf2
Merge branch 'master' into role-connections
plun1331 Feb 7, 2023
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
Prev Previous commit
Next Next commit
Update enums.rst
  • Loading branch information
plun1331 authored Dec 9, 2022
commit 04c626da7c1c4fd9f9dac721d998f4febfa611c1
45 changes: 45 additions & 0 deletions docs/api/enums.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1867,3 +1867,48 @@ of :class:`enum.Enum`.
.. attribute:: guild_only

Represents a scheduled event that is only available to members inside the guild.

.. class:: ApplicationRoleConnectionMetadataType

Represents an application role connection metadata type.

Each metadata type offers a comparison operation that allows guilds to
configure role requirements based on metadata values stored by the bot.
Bots specify a ``metadata value`` for each user and guilds specify the
required ``guild's configured value`` within the guild role settings.

.. versionadded:: 2.4

.. attribute:: integer_less_than_or_equal

The metadata value (``integer``) is less than or equal to the guild's configured value (``integer``).

.. attribute:: integer_greater_than_or_equal

The metadata value (``integer``) is greater than or equal to the guild's configured value (``integer``).

.. attribute:: integer_equal

The metadata value (``integer``) is equal to the guild's configured value (``integer``).

.. attribute:: integer_not_equal

The metadata value (``integer``) is not equal to the guild's configured value (``integer``).

.. attribute:: datetime_less_than_or_equal

The metadata value (``datetime``) is less than or equal to the guild's configured value
(``integer``; the number of days before the current date).

.. attribute:: datetime_greater_than_or_equal

The metadata value (``datetime``) is greater than or equal to the guild's configured value
(``integer``; the number of days before the current date).

.. attribute:: boolean_equal

The metadata value (``integer``) is equal to the guild's configured value (``integer``; 1).

.. attribute:: boolean_not_equal

The metadata value (``integer``) is not equal to the guild's configured value (``integer``; 1).