As I delve into the world of creating my inaugural Discord bot, I found myself stumped on how to successfully unpin all pinned messages within a designated channel. My original plan was to use
message.channel.messages.fetchPinned().array()
, however, much to my dismay, this approach resulted in an error message informing me that fetchPinned().array()
is not a valid function. Can anyone offer some guidance on where I may have gone astray?