Browse Source

Fix typo in change_presence validation message

pull/363/head
khazhyk 9 years ago
parent
commit
98d8c855d8
  1. 2
      discord/gateway.py

2
discord/gateway.py

@ -408,7 +408,7 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol):
@asyncio.coroutine
def change_presence(self, *, game=None, status=None, afk=False, since=0.0, idle=None):
if game is not None and not isinstance(game, Game):
raise InvalidArgument('game must be of Game or None')
raise InvalidArgument('game must be of type Game or None')
if idle:
status = 'idle'

Loading…
Cancel
Save