Skip to main content

Class RestPingInteraction

Represents a REST-based ping interaction.

Assembly: Discord.Net.Rest.dll​
View Source​
Declaration
public class RestPingInteraction : RestInteraction, IDiscordInteraction, ISnowflakeEntity, IEntity<ulong>

Methods​

AcknowledgePing()​

View Source​
Declaration
public string AcknowledgePing()
Returns​

System.String

Defer(Boolean, RequestOptions)​

View Source​
Declaration
public override string Defer(bool ephemeral = false, RequestOptions options = null)
Returns​

System.String

Parameters​
TypeName
System.Booleanephemeral
Discord.RequestOptionsoptions

FollowupAsync(String, Embed[], Boolean, Boolean, AllowedMentions, RequestOptions, MessageComponent, Embed)​

View Source​
Declaration
public override Task<RestFollowupMessage> FollowupAsync(string text = null, Embed[] embeds = null, bool isTTS = false, bool ephemeral = false, AllowedMentions allowedMentions = null, RequestOptions options = null, MessageComponent component = null, Embed embed = null)
Returns​

System.Threading.Tasks.Task<Discord.Rest.RestFollowupMessage>

Parameters​
TypeName
System.Stringtext
Discord.Embed[]embeds
System.BooleanisTTS
System.Booleanephemeral
Discord.AllowedMentionsallowedMentions
Discord.RequestOptionsoptions
Discord.MessageComponentcomponent
Discord.Embedembed

FollowupWithFileAsync(Stream, String, String, Embed[], Boolean, Boolean, AllowedMentions, RequestOptions, MessageComponent, Embed)​

View Source​
Declaration
public override Task<RestFollowupMessage> FollowupWithFileAsync(Stream fileStream, string fileName, string text = null, Embed[] embeds = null, bool isTTS = false, bool ephemeral = false, AllowedMentions allowedMentions = null, RequestOptions options = null, MessageComponent component = null, Embed embed = null)
Returns​

System.Threading.Tasks.Task<Discord.Rest.RestFollowupMessage>

Parameters​
TypeName
System.IO.StreamfileStream
System.StringfileName
System.Stringtext
Discord.Embed[]embeds
System.BooleanisTTS
System.Booleanephemeral
Discord.AllowedMentionsallowedMentions
Discord.RequestOptionsoptions
Discord.MessageComponentcomponent
Discord.Embedembed

FollowupWithFileAsync(String, String, String, Embed[], Boolean, Boolean, AllowedMentions, RequestOptions, MessageComponent, Embed)​

View Source​
Declaration
public override Task<RestFollowupMessage> FollowupWithFileAsync(string filePath, string text = null, string fileName = null, Embed[] embeds = null, bool isTTS = false, bool ephemeral = false, AllowedMentions allowedMentions = null, RequestOptions options = null, MessageComponent component = null, Embed embed = null)
Returns​

System.Threading.Tasks.Task<Discord.Rest.RestFollowupMessage>

Parameters​
TypeName
System.StringfilePath
System.Stringtext
System.StringfileName
Discord.Embed[]embeds
System.BooleanisTTS
System.Booleanephemeral
Discord.AllowedMentionsallowedMentions
Discord.RequestOptionsoptions
Discord.MessageComponentcomponent
Discord.Embedembed

Respond(String, Embed[], Boolean, Boolean, AllowedMentions, RequestOptions, MessageComponent, Embed)​

View Source​
Declaration
public override string Respond(string text = null, Embed[] embeds = null, bool isTTS = false, bool ephemeral = false, AllowedMentions allowedMentions = null, RequestOptions options = null, MessageComponent component = null, Embed embed = null)
Returns​

System.String

Parameters​
TypeName
System.Stringtext
Discord.Embed[]embeds
System.BooleanisTTS
System.Booleanephemeral
Discord.AllowedMentionsallowedMentions
Discord.RequestOptionsoptions
Discord.MessageComponentcomponent
Discord.Embedembed

Implements​