Skip to content

Commit

Permalink
refactor(ClientApplication): add to user manager
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite committed Oct 7, 2023
1 parent 3931d8a commit dc67800
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/discord.js/src/structures/ClientApplication.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/discord.js/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ export class ClientApplication extends Application {
private constructor(client: Client<true>, 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;
Expand Down

0 comments on commit dc67800

Please sign in to comment.