You will want to retrieve all the pins of a channel using
channel.pins(), as seen in the code below. This will give you a
list of messages, assuming the channel has pins.
pins = await ctx.channel.pins() # a list of all the channel's pins await ctx.send(pins) # sends all the information in the channel's first pin await ctx.send(pins.content) # sends the content of the message. # An error will occur if there is no message content