From d1d54a468a88323a8ef7798ff084a1371d5893ec Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 17 Oct 2016 18:25:23 -0400 Subject: Rename Server to Guild everywhere. --- discord/gateway.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'discord/gateway.py') diff --git a/discord/gateway.py b/discord/gateway.py index 415eed41..169d6fb1 100644 --- a/discord/gateway.py +++ b/discord/gateway.py @@ -115,15 +115,15 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol): PRESENCE Send only. Updates your presence. VOICE_STATE - Send only. Starts a new connection to a voice server. + Send only. Starts a new connection to a voice guild. VOICE_PING - Send only. Checks ping time to a voice server, do not use. + Send only. Checks ping time to a voice guild, do not use. RESUME Send only. Resumes an existing connection. RECONNECT Receive only. Tells the client to reconnect to a new gateway. REQUEST_MEMBERS - Send only. Asks for the full member list of a server. + Send only. Asks for the full member list of a guild. INVALIDATE_SESSION Receive only. Tells the client to invalidate the session and IDENTIFY again. @@ -436,8 +436,8 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol): if status_enum is Status.invisible: status_enum = Status.offline - for server in self._connection.servers: - me = server.me + for guild in self._connection.guilds: + me = guild.me if me is None: continue @@ -524,7 +524,7 @@ class DiscordVoiceWebSocket(websockets.client.WebSocketClientProtocol): identify = { 'op': cls.IDENTIFY, 'd': { - 'server_id': client.guild_id, + 'guild_id': client.guild_id, 'user_id': client.user.id, 'session_id': client.session_id, 'token': client.token -- cgit v1.2.3