I use the following code to get the nick attribute of a member object by id:
nick
m = await ctx.guild.fetch_member(user_id) user_nick = m.nick