|
|
@ -56,8 +56,12 @@ class client(): |
|
|
|
while True: |
|
|
|
while True: |
|
|
|
try: |
|
|
|
try: |
|
|
|
asyncio.run(self.shit()) |
|
|
|
asyncio.run(self.shit()) |
|
|
|
|
|
|
|
except websockets.exceptions.ConnectionClosed: |
|
|
|
|
|
|
|
pass |
|
|
|
except websockets.exceptions.ConnectionClosedError: |
|
|
|
except websockets.exceptions.ConnectionClosedError: |
|
|
|
pass |
|
|
|
pass |
|
|
|
|
|
|
|
except websockets.exceptions.ConnectionClosedOK: |
|
|
|
|
|
|
|
pass |
|
|
|
|
|
|
|
|
|
|
|
def get_channel(self, id): |
|
|
|
def get_channel(self, id): |
|
|
|
endpoint = f"https://discordapp.com/api/channels/{id}" |
|
|
|
endpoint = f"https://discordapp.com/api/channels/{id}" |
|
|
|