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
ulongChannel ID
limit
intLimit 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