9 |
import getUser from "../../utils/getUser"; |
import getUser from "../../utils/getUser"; |
10 |
import { parseUser } from "../../utils/parseInput"; |
import { parseUser } from "../../utils/parseInput"; |
11 |
import BaseCommand from "../../utils/structures/BaseCommand"; |
import BaseCommand from "../../utils/structures/BaseCommand"; |
12 |
|
import { getUserBadges } from "./ProfileCommand"; |
13 |
|
|
14 |
export default class UserLookupCommand extends BaseCommand { |
export default class UserLookupCommand extends BaseCommand { |
15 |
supportsInteractions: boolean = true; |
supportsInteractions: boolean = true; |
81 |
} |
} |
82 |
]; |
]; |
83 |
|
|
84 |
|
embed.setThumbnail(user.displayAvatarURL()); |
85 |
|
|
86 |
if (member) { |
if (member) { |
87 |
fields.push({ |
fields.push({ |
88 |
name: "Joined Server", |
name: "Joined Server", |
153 |
} |
} |
154 |
} |
} |
155 |
|
|
156 |
|
const badges = getUserBadges(user).join('\n'); |
157 |
|
|
158 |
|
fields.push({ |
159 |
|
name: "Badges", |
160 |
|
value: badges.trim() === '' ? '*No badges found*' : badges |
161 |
|
}); |
162 |
|
|
163 |
fields = [...fields, ...fieldsCommon]; |
fields = [...fields, ...fieldsCommon]; |
164 |
embed.setFields(fields); |
embed.setFields(fields); |
165 |
embed.setTimestamp(); |
embed.setTimestamp(); |