Class RestInteractionMessage
Represents the initial REST-based response to a slash command.
Assembly: Discord.Net.Rest.dll​
View Source​
Declaration
public class RestInteractionMessage : RestUserMessage, IUpdateable, IUserMessage, IMessage, ISnowflakeEntity, IEntity<ulong>, IDeletable
Methods​
DeleteAsync()​
Deletes this object and all of it's children.
View Source​
Declaration
public Task DeleteAsync()
Returns​
System.Threading.Tasks.Task
: A task that represents the asynchronous delete operation.### ModifyAsync(Action<MessageProperties>, RequestOptions)
Modifies this interaction response
View Source​
Declaration
public async Task ModifyAsync(Action<MessageProperties> func, RequestOptions options = null)
Returns​
System.Threading.Tasks.Task
:
A task that represents the asynchronous modification operation.
Parameters​
Type | Name | Description |
---|---|---|
System.Action<Discord.MessageProperties> | func | A delegate containing the properties to modify the message with. |
Discord.RequestOptions | options | The options to be used when sending the request. |
Implements​
- Discord.IUpdateable
- Discord.IUserMessage
- Discord.IMessage
- Discord.ISnowflakeEntity
- Discord.IEntity<TId>
- Discord.IDeletable
Extension Methods​
- Discord.IUserMessage.Discord.Commands.MessageExtensions.HasCharPrefix(System.Char,System.Int32@)
- Discord.IUserMessage.Discord.Commands.MessageExtensions.HasStringPrefix(System.String,System.Int32@,System.StringComparison)
- Discord.IUserMessage.Discord.Commands.MessageExtensions.HasMentionPrefix(Discord.IUser,System.Int32@)