#How to convert mention to userId pycord

1 messages · Page 1 of 1 (latest)

wide trench
#

Your title and example don't match

thin prism
#

uh

thin prism
wide trench
#

You make no sense. How am I supposed to help you

thin prism
#

.

#

just want make /dm {UserId} change to /dm {mention}

near zephyr
#

Hold on

#

Is your current slash command input type int

#

And you want to turn it to input type user

#

Correct?

thin prism
#

get the user id

#

And

#

not show all button just show label 2
button

near zephyr
#

Which function defines the slash command?

thin prism
thorn flame
#

just do <@id> to get a mention

#

or .mention if you already have a user object

tough helm
thin prism
#

i want /proflie { type userid} change to /proflie {mention} but the bot need user id the send message

thorn flame
thin prism
#

o

thorn flame
#

user: Option(discord.User)

thin prism
#

o

thorn flame
thin prism