style: remove function names from implicit util functions
This commit is contained in:
parent
f2fcdbf733
commit
0c4d42f3c1
5 changed files with 5 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
import type { GuildMemberResponse, UserResponse } from "~/types/interfaces";
|
||||
|
||||
export function getDisplayName(user: UserResponse, member?: GuildMemberResponse): string {
|
||||
export default (user: UserResponse, member?: GuildMemberResponse): string => {
|
||||
if (member?.nickname) return member.nickname
|
||||
if (user.display_name) return user.display_name
|
||||
return user.username
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue