ogmatrix-event
Version:
A cool Discord Event Handler.
9 lines (8 loc) • 527 B
JavaScript
const client = require('../../../index');
/* Emitted whenever the pins of a channel are updated. Due to the nature of the WebSocket event, not much information can be provided easily here - you need to manually check the pins yourself.
PARAMETER TYPE DESCRIPTION
channel Channel The channel that the pins update occurred in
time Date The time of the pins update */
client.on("channelPinsUpdate", (channel, time) => {
console.log(`channelPinsUpdate: ${channel}:${time}`);
});