Skip to main content

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​
TypeNameDescription
System.Action<Discord.MessageProperties>funcA delegate containing the properties to modify the message with.
Discord.RequestOptionsoptionsThe options to be used when sending the request.

Implements​

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@)