mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 10:33:30 +01:00
chore: run format
This commit is contained in:
@@ -23,9 +23,18 @@ export class DocumentedItem<Data = DeclarationReflection | Item> {
|
||||
|
||||
private detailedName() {
|
||||
const data = this.data as unknown as Item | undefined;
|
||||
if (!data) return this.constructor.name;
|
||||
if (data.id) return `${data.id} (${this.constructor.name})`;
|
||||
if (data.name) return `${data.name} (${this.constructor.name})`;
|
||||
if (!data) {
|
||||
return this.constructor.name;
|
||||
}
|
||||
|
||||
if (data.id) {
|
||||
return `${data.id} (${this.constructor.name})`;
|
||||
}
|
||||
|
||||
if (data.name) {
|
||||
return `${data.name} (${this.constructor.name})`;
|
||||
}
|
||||
|
||||
return this.constructor.name;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user