Table of Contents

Method GetChannelMessagesAsync

Namespace
DSharpPlus
Assembly
DSharpPlus.Rest.dll

GetChannelMessagesAsync(ulong, int, ulong?, ulong?, ulong?)

Gets messages from a channel

public Task<IReadOnlyList<DiscordMessage>> GetChannelMessagesAsync(ulong channelId, int limit, ulong? before, ulong? after, ulong? around)

Parameters

channelId ulong

Channel ID

limit int

Limit of messages to get

before ulong?

Gets messages before this ID

after ulong?

Gets messages after this ID

around ulong?

Gets messages around this ID

Returns

Task<IReadOnlyList<DiscordMessage>>