Interface IUserMessage
- Namespace
- Kook
- Assembly
- Kook.Net.Core.dll
Represents a generic message sent by a user.
public interface IUserMessage : IMessage, IEntity<Guid>, IDeletable
- Inherited Members
- Extension Methods
Properties
Quote
Gets the message quote.
IQuote? Quote { get; }
Property Value
- IQuote
The message quote.
Methods
ModifyAsync(Action<MessageProperties>, RequestOptions?)
Modifies this message.
Task ModifyAsync(Action<MessageProperties> func, RequestOptions? options = null)
Parameters
func
Action<MessageProperties>A delegate containing the properties to modify the message with.
options
RequestOptionsThe options to be used when sending the request.
Returns
- Task
A task that represents the asynchronous modification operation.
Remarks
This method modifies this message with the specified properties. To see an example of this method and what properties are available, please refer to MessageProperties.
Resolve(TagHandling, TagHandling, TagHandling, TagHandling, TagHandling)
Transforms this message's text into a human-readable form by resolving its tags.
string Resolve(TagHandling userHandling = TagHandling.Name, TagHandling channelHandling = TagHandling.Name, TagHandling roleHandling = TagHandling.Name, TagHandling everyoneHandling = TagHandling.Name, TagHandling emojiHandling = TagHandling.Name)
Parameters
userHandling
TagHandlingDetermines how the user tag should be handled.
channelHandling
TagHandlingDetermines how the channel tag should be handled.
roleHandling
TagHandlingDetermines how the role tag should be handled.
everyoneHandling
TagHandlingDetermines how the @everyone tag should be handled.
emojiHandling
TagHandlingDetermines how the emoji tag should be handled.