Skip to content

Commit

Permalink
1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
arandomnewaccount committed Mar 13, 2021
1 parent aafff8f commit 748a092
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 2 deletions.
46 changes: 46 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,50 @@
# Changelog
# 1.2.0
### Added
- added guild_create parsing function
- added sessions_replace parsing function (to better sync the client and discord when updating activities)
- added parsing functions for ready and ready_supplemental
- added guild_members_chunk event parsing
- added
- added headerModification ability to RESTapiwrap (because some api wraps do not require the authorization header)
- added ability to speed up client initialization by setting the build number (this is useful for running multiple bots):
```python
bot = discum.Client(token=tokenlist[0])
build_num = bot._Client__super_properties['client_build_number']
clients = [bot]
for token in tokenlist[1:]:
clients.append(discum.Client(token=token, build_num=build_num))
```
- added ability to set and remove statuses and activities (gateway functions):
```python
bot.gateway.setStatus(status)
bot.gateway.setCustomStatus(customstatus, emoji=None, animatedEmoji=False, expires_at=None)
bot.gateway.removeCustomStatus()
bot.gateway.setPlayingStatus(game)
bot.gateway.removePlayingStatus()
bot.gateway.setStreamingStatus(stream, url)
bot.gateway.removeStreamingStatus()
bot.gateway.setListeningStatus(song)
bot.gateway.removeListeningStatus()
bot.gateway.setWatchingStatus(show)
bot.gateway.removeWatchingStatus()
bot.gateway.clearActivities()
```
### Changed
- reformatted session data
- ready event:
- merged_members field used to predict current role in guild
- relationships is a dict instead of a list
- private_channels (DMs) is a dict instead of a list
- guilds is a dict instead of a list
- within guilds: emojis, roles, and channels are dicts instead of lists
- ready_supplemental event:
- online_friends is a dict instead of a list
- voice_states is a dict instead of a list
- moved setting status commands to gateway
- cleaned searchMessages http function
### Removed
- all "merged" functions from /discum/gateway/session.py
# 1.1.0
### Added
- 3 http api wraps: leaveGuild, createInvite, revokeBan
Expand Down
2 changes: 1 addition & 1 deletion discum/__version__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VERSION = (1, 1, 0)
VERSION = (1, 2, 0)

__version__ = '.'.join(map(str, VERSION))
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class FileNotFoundError(OSError):
EMAIL = '[email protected]'
AUTHOR = 'Merubokkusu'
REQUIRES_PYTHON = '>=2.7.0'
VERSION = '1.1.0'
VERSION = '1.2.0'

# What packages are required for this module to be executed?
REQUIRED = [
Expand Down

0 comments on commit 748a092

Please sign in to comment.