diff options
| author | Rapptz <[email protected]> | 2017-01-20 19:26:56 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-01-20 19:28:43 -0500 |
| commit | 4c981ee6315f43b28d99a84851d3f6138738a77f (patch) | |
| tree | 18c252f0c09b3eade7964d5c4941f52c7dc9906a /discord/enums.py | |
| parent | Add ClientUser.premium boolean. (diff) | |
| download | discord.py-4c981ee6315f43b28d99a84851d3f6138738a77f.tar.xz discord.py-4c981ee6315f43b28d99a84851d3f6138738a77f.zip | |
Add support for relationships.
Diffstat (limited to 'discord/enums.py')
| -rw-r--r-- | discord/enums.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/discord/enums.py b/discord/enums.py index 8e4ebc50..f0acff11 100644 --- a/discord/enums.py +++ b/discord/enums.py @@ -96,6 +96,12 @@ class DefaultAvatar(Enum): def __str__(self): return self.name +class RelationshipType(Enum): + friend = 1 + blocked = 2 + incoming_request = 3 + outgoing_request = 4 + def try_enum(cls, val): """A function that tries to turn the value into enum ``cls``. |