diff options
| author | Rapptz <[email protected]> | 2017-04-22 04:50:31 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-04-22 04:50:31 -0400 |
| commit | 1519a6fefaf9f6cc16afd990a5d0b07762861f13 (patch) | |
| tree | 92b65a4b54e1f23c0fc80d68cf8d177b5c971e0d | |
| parent | Fix NameError in Role.edit when moving roles. (diff) | |
| download | discord.py-1519a6fefaf9f6cc16afd990a5d0b07762861f13.tar.xz discord.py-1519a6fefaf9f6cc16afd990a5d0b07762861f13.zip | |
Fix some linting errors.
| -rw-r--r-- | discord/client.py | 2 | ||||
| -rw-r--r-- | discord/state.py | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/discord/client.py b/discord/client.py index 95f71327..e1b2a798 100644 --- a/discord/client.py +++ b/discord/client.py @@ -329,7 +329,7 @@ class Client: """ log.info('logging in using static token') - data = yield from self.http.static_login(token, bot=bot) + yield from self.http.static_login(token, bot=bot) self.connection.is_bot = bot @asyncio.coroutine diff --git a/discord/state.py b/discord/state.py index 1a2f9b98..8cd96ee1 100644 --- a/discord/state.py +++ b/discord/state.py @@ -26,15 +26,13 @@ DEALINGS IN THE SOFTWARE. from .guild import Guild from .user import User, ClientUser -from .game import Game from .emoji import Emoji, PartialEmoji -from .reaction import Reaction from .message import Message from .relationship import Relationship from .channel import * from .member import Member from .role import Role -from .enums import Status, ChannelType, try_enum +from .enums import ChannelType, try_enum from .calls import GroupCall from . import utils, compat @@ -350,7 +348,6 @@ class ConnectionState: log.warning('PRESENCE_UPDATE referencing an unknown guild ID: %s. Discarding.', guild_id) return - status = data.get('status') user = data['user'] member_id = int(user['id']) member = guild.get_member(member_id) |