“Discord.py Uzyskaj identyfikator użytkownika” Kod odpowiedzi

Discord Py Zdobądź użytkownika według identyfikatora

user = bot.get_user(user_id)
IllegalBeagle123

Jak uzyskać nazwę użytkownika za pomocą UserID Discord.py

username = client.get_user(user_id)
Swetsen

Discord.py Uzyskaj identyfikator użytkownika

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')
Maou Shimazu

Odpowiedzi podobne do “Discord.py Uzyskaj identyfikator użytkownika”

Pytania podobne do “Discord.py Uzyskaj identyfikator użytkownika”

Więcej pokrewnych odpowiedzi na “Discord.py Uzyskaj identyfikator użytkownika” w Python

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu