“Discord Py Zdobądź użytkownika według identyfikatora” 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 Python Zdobądź obiekt członka według identyfikatora

user = await bot.fetch_user(payload.user_id)
Cooperative Cobra

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

#Another way to do it as a simpler way with discord.py:
#(This is a command for showing the author of the message's ID)
id = message.author.id
if message.content.startswith("!whatismyid"):
  await message.channel.send("Your ID is: "+str(id))
Calm Chamois

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

id = message.author.id
await message.channel.send("<@"+str(id)+"> Mentioned you!")
Calm Chamois

Odpowiedzi podobne do “Discord Py Zdobądź użytkownika według identyfikatora”

Pytania podobne do “Discord Py Zdobądź użytkownika według identyfikatora”

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

Przeglądaj inne języki kodu