fix(MessageManager): pin route (#7610)

This commit is contained in:
muchnameless
2022-03-06 16:24:03 +01:00
committed by GitHub
parent 6f7a366956
commit cb566c8b6a

View File

@@ -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 });
}
/**