Discore
Show / Hide Table of Contents

Method GetPinnedMessages

| Improve this Doc View Source

GetPinnedMessages(Snowflake)

Gets a list of all pinned messages in a text channel.

Declaration
public Task<IReadOnlyList<DiscordMessage>> GetPinnedMessages(Snowflake channelId)
Parameters
Type Name Description
Snowflake channelId
Returns
Type Description
Task<IReadOnlyList<DiscordMessage>>
Exceptions
Type Condition
DiscordHttpApiException
| Improve this Doc View Source

GetPinnedMessages(ITextChannel)

Gets a list of all pinned messages in a text channel.

Declaration
public Task<IReadOnlyList<DiscordMessage>> GetPinnedMessages(ITextChannel channel)
Parameters
Type Name Description
ITextChannel channel
Returns
Type Description
Task<IReadOnlyList<DiscordMessage>>
Exceptions
Type Condition
ArgumentNullException
DiscordHttpApiException
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX