'How to get discord message content with python websocket
from discord.ext import commands
from threading import Thread
client = commands.Bot(command_prefix="!")
@client.event
async def on_message(message):
print(message.content)
client.run("token")
this is my code with discord.py-self but i need to do with websocket and i dont know how please help me
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|