user = bot.get_user(user_id)
username = client.get_user(user_id)
import discord
import asyncio
client = discord.Client()
@client.event
async def on_ready():
print('Logged in as')
print(client.user.name)
print(client.user.id)
print('------')
@client.event
async def on_message(message):
print(message.author.id)
client.run('token')
import discord
import asyncio
client = discord.Client()
@client.event
async def on_message(message):
print(message.author.id)
client.run('token')