D
D
Danil Polonsky2021-07-06 16:04:10
Python
Danil Polonsky, 2021-07-06 16:04:10

How to get the ID of the mentioned user in a specific Discord group channel?

I am writing my own discord bot .. and I need it to be able to receive the user ID of the user mentioned in my specified group and a specific channel (if possible) , how to make this a reality? All my attempts were unsuccessful and information about it is almost 0.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2021-07-06
@EraFe

almost 0 information about it

In addition to off documentation, where all fields and classes are described
It is not clear what is meant, well, let's say
@bot.command()
async def test(ctx, member: discord.Member):
    await ctx.send(member.id)

https://discordpy.readthedocs.io/en/stable/api.htm...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question