#how to get bot nickname

1 messages · Page 1 of 1 (latest)

silent hearth
#

how do i get the bot nickname?

#

in a server

#

and if so what will it return if the user never changed the bot nickname>

fast gull
silent hearth
#

.me?

fast gull
#

yes

silent hearth
#

so weird

fast gull
#

well it makes sense

silent hearth
#

so what woudl it return if the bot doesnt have a nickname in a server?

fast gull
#

ctx.me returns the bot's member in that guild

#

None

silent hearth
#

oh

#

that's tedious

fast gull
#

well if they literally don't have a nick

silent hearth
#

i wish itd fall back on the bot name

#

yeah i understand the reasoning

#

just in my scenario it'll be a pain on doing it how i wanted

fast gull
#

just do ctx.me.nick or ctx.me.name

#

easy fallback

silent hearth
#

oh good point

#

youre too smart

#

actually that wouldnt work due to the bot can return none

#

so thinking about it, it'd be like none since as u said itd always say none

#

so id have to check if ctx.me.nick is none which i dont want to do

sweet wigeon
#

display_name shows the nick (if set) or username

#

b!rtfm pyc member.display_name

jolly prawnBOT
fast gull
#

oops always forget display_name