Skip to content

Commit

Permalink
fix(MessageManager): pin route (#7610)
Browse files Browse the repository at this point in the history
  • Loading branch information
muchnameless committed Mar 6, 2022
1 parent 6f7a366 commit cb566c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discord.js/src/managers/MessageManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class MessageManager extends CachedManager {
message = this.resolveId(message);
if (!message) throw new TypeError('INVALID_TYPE', 'message', 'MessageResolvable');

await this.client.rest.put(Routes.channelPins(this.channel.id, message), { reason });
await this.client.rest.put(Routes.channelPin(this.channel.id, message), { reason });
}

/**
Expand Down

0 comments on commit cb566c8

Please sign in to comment.