IMessageChannel
Namespace: Discord
Methods
TriggerTyping
Triggers the "user is typing..." signal.
SendMessage
Sends a message to the channel.
Parameters
Name | Description | Type |
message | The message you want to send | string |
tts | Whether your message should be tts'd or not | bool? |
embed | The embed you want to include | DiscordEmbed? |
Returns
pageDiscordMessageSendFile
Sends a file to the channel.
Parameters
Name | Description | Type |
fileName | The name you want displayed on the file in the Discord UI | string |
fileData | The contents of your file | byte[] |
message | A message to go along with the file | string? |
tts | Whether your message should be tts'd or not | bool? |
Returns
pageDiscordMessageSendFile
Sends a file to the channel. This overload reads from a file on your machine.
Parameters
Name | Description | Type |
filePath | Your file's path | string |
message | A message to go along with the file | string? |
tts | Whether your message should be tts'd or not | bool? |
Returns
pageDiscordMessageDeleteMessages
Bulk deletes a list of messages (only available on bot acocunts).
Parameters
Name | Description | Type |
messages | The messages you want deleted | List<ulong> |
GetMessages
Gets a list of messages from the channel.
Parameters
Name | Description | Type |
filters | Your desired message filters | MessageFilters? |
Returns
A list of
pageDiscordMessageGetPinnedMessages
Gets the channel's pinned messages.
Returns
A list of
pageDiscordMessagePinMessage
Pins a message.
Parameters
Name | Description | Type |
messageId | ID of the message you want pinned | ulong |
UnpinMessage
Unpins a message from the channel.
Parameters
Name | Description | Type |
messageId | ID of the message you want unpinned | ulong |
Last updated