diff --git a/packages/discord.js/src/structures/ClientApplication.js b/packages/discord.js/src/structures/ClientApplication.js index bb8035f8869c..065b1fa1bbf9 100644 --- a/packages/discord.js/src/structures/ClientApplication.js +++ b/packages/discord.js/src/structures/ClientApplication.js @@ -122,10 +122,10 @@ class ClientApplication extends Application { if ('bot' in data) { /** - * A partial user for the bot associated with this application. + * The bot associated with this application. * @type {?User} */ - this.bot = data.bot; + this.bot = this.client.users._add(data.bot); } else { this.bot ??= null; } diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 27a6b5434405..b651c51931e5 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -1020,7 +1020,7 @@ export class ClientApplication extends Application { private constructor(client: Client, data: RawClientApplicationData); public botPublic: boolean | null; public botRequireCodeGrant: boolean | null; - public bot: PartialUser | null; + public bot: User | null; public commands: ApplicationCommandManager; public guildId: Snowflake | null; public get guild(): Guild | null;