diff --git a/src/Discord.Net.Commands/ModuleBase.cs b/src/Discord.Net.Commands/ModuleBase.cs
index 3eddc11d2..5008cca35 100644
--- a/src/Discord.Net.Commands/ModuleBase.cs
+++ b/src/Discord.Net.Commands/ModuleBase.cs
@@ -38,12 +38,12 @@ namespace Discord.Commands
///
/// The request options for this request.
/// The message references to be included. Used to reply to specific messages.
- /// The message components to be included with this message. Used for interactions.
+ /// The message components to be included with this message. Used for interactions.
/// A collection of stickers to send with the file.
/// A array of s to send with this response. Max 10.
- protected virtual async Task ReplyAsync(string message = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null, Embed[] embeds = null)
+ protected virtual async Task ReplyAsync(string message = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent components = null, ISticker[] stickers = null, Embed[] embeds = null)
{
- return await Context.Channel.SendMessageAsync(message, isTTS, embed, options, allowedMentions, messageReference, component, stickers, embeds).ConfigureAwait(false);
+ return await Context.Channel.SendMessageAsync(message, isTTS, embed, options, allowedMentions, messageReference, components, stickers, embeds).ConfigureAwait(false);
}
///
/// The method to execute before executing the command.
diff --git a/src/Discord.Net.Core/Entities/Channels/IMessageChannel.cs b/src/Discord.Net.Core/Entities/Channels/IMessageChannel.cs
index 87dfb3460..00ec38746 100644
--- a/src/Discord.Net.Core/Entities/Channels/IMessageChannel.cs
+++ b/src/Discord.Net.Core/Entities/Channels/IMessageChannel.cs
@@ -28,14 +28,14 @@ namespace Discord
/// If null, all mentioned roles and users will be notified.
///
/// The message references to be included. Used to reply to specific messages.
- /// The message components to be included with this message. Used for interactions.
+ /// The message components to be included with this message. Used for interactions.
/// A collection of stickers to send with the message.
/// A array of s to send with this response. Max 10.
///
/// A task that represents an asynchronous send operation for delivering the message. The task result
/// contains the sent message.
///
- Task SendMessageAsync(string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null, Embed[] embeds = null);
+ Task SendMessageAsync(string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent components = null, ISticker[] stickers = null, Embed[] embeds = null);
///
/// Sends a file to this message channel with an optional caption.
///
@@ -68,14 +68,14 @@ namespace Discord
/// If null, all mentioned roles and users will be notified.
///
/// The message references to be included. Used to reply to specific messages.
- /// The message components to be included with this message. Used for interactions.
+ /// The message components to be included with this message. Used for interactions.
/// A collection of stickers to send with the file.
/// A array of s to send with this response. Max 10.
///
/// A task that represents an asynchronous send operation for delivering the message. The task result
/// contains the sent message.
///
- Task SendFileAsync(string filePath, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null, Embed[] embeds = null);
+ Task SendFileAsync(string filePath, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent components = null, ISticker[] stickers = null, Embed[] embeds = null);
///
/// Sends a file to this message channel with an optional caption.
///
@@ -105,14 +105,14 @@ namespace Discord
/// If null, all mentioned roles and users will be notified.
///
/// The message references to be included. Used to reply to specific messages.
- /// The message components to be included with this message. Used for interactions.
+ /// The message components to be included with this message. Used for interactions.
/// A collection of stickers to send with the file.
/// A array of s to send with this response. Max 10.
///
/// A task that represents an asynchronous send operation for delivering the message. The task result
/// contains the sent message.
///
- Task SendFileAsync(Stream stream, string filename, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null, Embed[] embeds = null);
+ Task SendFileAsync(Stream stream, string filename, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent components = null, ISticker[] stickers = null, Embed[] embeds = null);
///
/// Sends a file to this message channel with an optional caption.
///
@@ -134,14 +134,14 @@ namespace Discord
/// If null, all mentioned roles and users will be notified.
///
/// The message references to be included. Used to reply to specific messages.
- /// The message components to be included with this message. Used for interactions.
+ /// The message components to be included with this message. Used for interactions.
/// A collection of stickers to send with the file.
/// A array of s to send with this response. Max 10.
///
/// A task that represents an asynchronous send operation for delivering the message. The task result
/// contains the sent message.
///
- Task SendFileAsync(FileAttachment attachment, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null, Embed[] embeds = null);
+ Task SendFileAsync(FileAttachment attachment, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent components = null, ISticker[] stickers = null, Embed[] embeds = null);
///
/// Sends a collection of files to this message channel.
///
@@ -163,14 +163,14 @@ namespace Discord
/// If null, all mentioned roles and users will be notified.
///
/// The message references to be included. Used to reply to specific messages.
- /// The message components to be included with this message. Used for interactions.
+ /// The message components to be included with this message. Used for interactions.
/// A collection of stickers to send with the file.
/// A array of s to send with this response. Max 10.
///
/// A task that represents an asynchronous send operation for delivering the message. The task result
/// contains the sent message.
///
- Task SendFilesAsync(IEnumerable attachments, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null, Embed[] embeds = null);
+ Task SendFilesAsync(IEnumerable attachments, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent components = null, ISticker[] stickers = null, Embed[] embeds = null);
///
/// Gets a message from this message channel.
diff --git a/src/Discord.Net.Core/Extensions/UserExtensions.cs b/src/Discord.Net.Core/Extensions/UserExtensions.cs
index e268eae84..ce914170d 100644
--- a/src/Discord.Net.Core/Extensions/UserExtensions.cs
+++ b/src/Discord.Net.Core/Extensions/UserExtensions.cs
@@ -32,7 +32,7 @@ namespace Discord
/// Specifies if notifications are sent for mentioned users and roles in the message .
/// If null, all mentioned roles and users will be notified.
///
- /// The message components to be included with this message. Used for interactions.
+ /// The message components to be included with this message. Used for interactions.
/// A array of s to send with this response. Max 10.
///
/// A task that represents the asynchronous send operation. The task result contains the sent message.
@@ -43,10 +43,10 @@ namespace Discord
Embed embed = null,
RequestOptions options = null,
AllowedMentions allowedMentions = null,
- MessageComponent component = null,
+ MessageComponent components = null,
Embed[] embeds = null)
{
- return await (await user.CreateDMChannelAsync().ConfigureAwait(false)).SendMessageAsync(text, isTTS, embed, options, allowedMentions, component: component, embeds: embeds).ConfigureAwait(false);
+ return await (await user.CreateDMChannelAsync().ConfigureAwait(false)).SendMessageAsync(text, isTTS, embed, options, allowedMentions, components: components, embeds: embeds).ConfigureAwait(false);
}
///
@@ -85,7 +85,7 @@ namespace Discord
/// Whether the message should be read aloud by Discord or not.
/// The to be sent.
/// The options to be used when sending the request.
- /// The message component to be included with this message. Used for interactions.
+ /// The message component to be included with this message. Used for interactions.
/// A array of s to send with this response. Max 10.
///
/// A task that represents an asynchronous send operation for delivering the message. The task result
@@ -98,10 +98,10 @@ namespace Discord
bool isTTS = false,
Embed embed = null,
RequestOptions options = null,
- MessageComponent component = null,
+ MessageComponent components = null,
Embed[] embeds = null)
{
- return await (await user.CreateDMChannelAsync().ConfigureAwait(false)).SendFileAsync(stream, filename, text, isTTS, embed, options, component: component, embeds: embeds).ConfigureAwait(false);
+ return await (await user.CreateDMChannelAsync().ConfigureAwait(false)).SendFileAsync(stream, filename, text, isTTS, embed, options, components: components, embeds: embeds).ConfigureAwait(false);
}
///
@@ -145,7 +145,7 @@ namespace Discord
/// Whether the message should be read aloud by Discord or not.
/// The to be sent.
/// The options to be used when sending the request.
- /// The message component to be included with this message. Used for interactions.
+ /// The message component to be included with this message. Used for interactions.
/// A array of s to send with this response. Max 10.
///
/// A task that represents an asynchronous send operation for delivering the message. The task result
@@ -157,10 +157,10 @@ namespace Discord
bool isTTS = false,
Embed embed = null,
RequestOptions options = null,
- MessageComponent component = null,
+ MessageComponent components = null,
Embed[] embeds = null)
{
- return await (await user.CreateDMChannelAsync().ConfigureAwait(false)).SendFileAsync(filePath, text, isTTS, embed, options, component: component, embeds: embeds).ConfigureAwait(false);
+ return await (await user.CreateDMChannelAsync().ConfigureAwait(false)).SendFileAsync(filePath, text, isTTS, embed, options, components: components, embeds: embeds).ConfigureAwait(false);
}
///
diff --git a/src/Discord.Net.Interactions/InteractionModuleBase.cs b/src/Discord.Net.Interactions/InteractionModuleBase.cs
index f0e50da8d..56ef11d05 100644
--- a/src/Discord.Net.Interactions/InteractionModuleBase.cs
+++ b/src/Discord.Net.Interactions/InteractionModuleBase.cs
@@ -35,18 +35,18 @@ namespace Discord.Interactions
///
protected virtual async Task RespondAsync (string text = null, Embed[] embeds = null, bool isTTS = false, bool ephemeral = false,
- AllowedMentions allowedMentions = null, RequestOptions options = null, MessageComponent component = null, Embed embed = null) =>
- await Context.Interaction.RespondAsync(text, embeds, isTTS, ephemeral, allowedMentions, component, embed, options).ConfigureAwait(false);
+ AllowedMentions allowedMentions = null, RequestOptions options = null, MessageComponent components = null, Embed embed = null) =>
+ await Context.Interaction.RespondAsync(text, embeds, isTTS, ephemeral, allowedMentions, components, embed, options).ConfigureAwait(false);
///
protected virtual async Task 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) =>
- await Context.Interaction.FollowupAsync(text, embeds, isTTS, ephemeral, allowedMentions, component, embed, options).ConfigureAwait(false);
+ AllowedMentions allowedMentions = null, RequestOptions options = null, MessageComponent components = null, Embed embed = null) =>
+ await Context.Interaction.FollowupAsync(text, embeds, isTTS, ephemeral, allowedMentions, components, embed, options).ConfigureAwait(false);
///
protected virtual async Task ReplyAsync (string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null,
- AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null) =>
- await Context.Channel.SendMessageAsync(text, false, embed, options, allowedMentions, messageReference, component).ConfigureAwait(false);
+ AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent components = null) =>
+ await Context.Channel.SendMessageAsync(text, false, embed, options, allowedMentions, messageReference, components).ConfigureAwait(false);
///
protected virtual async Task DeleteOriginalResponseAsync ( )
diff --git a/src/Discord.Net.Interactions/RestInteractionModuleBase.cs b/src/Discord.Net.Interactions/RestInteractionModuleBase.cs
index ee1ce229e..fe184fc9a 100644
--- a/src/Discord.Net.Interactions/RestInteractionModuleBase.cs
+++ b/src/Discord.Net.Interactions/RestInteractionModuleBase.cs
@@ -42,18 +42,18 @@ namespace Discord.Interactions
/// if the response should be hidden to everyone besides the invoker of the command, otherwise .
/// The allowed mentions for this response.
/// The request options for this response.
- /// A to be sent with this response.
+ /// A to be sent with this response.
/// A single embed to send with this response. If this is passed alongside an array of embeds, the single embed will be ignored.
///
/// A Task representing the operation of creating the interaction response.
///
/// Thrown if the interaction isn't a type of .
- protected override async Task RespondAsync(string text = null, Embed[] embeds = null, bool isTTS = false, bool ephemeral = false, AllowedMentions allowedMentions = null, RequestOptions options = null, MessageComponent component = null, Embed embed = null)
+ protected override async Task RespondAsync(string text = null, Embed[] embeds = null, bool isTTS = false, bool ephemeral = false, AllowedMentions allowedMentions = null, RequestOptions options = null, MessageComponent components = null, Embed embed = null)
{
if (Context.Interaction is not RestInteraction restInteraction)
throw new InvalidOperationException($"Invalid interaction type. Interaction must be a type of {nameof(RestInteraction)} in order to execute this method");
- await InteractionService._restResponseCallback(Context, restInteraction.Respond(text, embeds, isTTS, ephemeral, allowedMentions, component, embed, options)).ConfigureAwait(false);
+ await InteractionService._restResponseCallback(Context, restInteraction.Respond(text, embeds, isTTS, ephemeral, allowedMentions, components, embed, options)).ConfigureAwait(false);
}
}
}
diff --git a/src/Discord.Net.Interactions/Utilities/InteractionUtility.cs b/src/Discord.Net.Interactions/Utilities/InteractionUtility.cs
index 00062ced6..9751b613d 100644
--- a/src/Discord.Net.Interactions/Utilities/InteractionUtility.cs
+++ b/src/Discord.Net.Interactions/Utilities/InteractionUtility.cs
@@ -98,7 +98,7 @@ namespace Discord.Interactions
.WithButton("Cancel", declineId, ButtonStyle.Danger)
.Build();
- var prompt = await channel.SendMessageAsync(message, component: component).ConfigureAwait(false);
+ var prompt = await channel.SendMessageAsync(message, components: component).ConfigureAwait(false);
var response = await WaitForMessageComponentAsync(client, prompt, timeout, cancellationToken).ConfigureAwait(false) as SocketMessageComponent;
diff --git a/src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs b/src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs
index 2956d6443..40328cbd6 100644
--- a/src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs
+++ b/src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs
@@ -267,7 +267,7 @@ namespace Discord.Rest
/// Message content is too long, length must be less or equal to .
public static async Task SendMessageAsync(IMessageChannel channel, BaseDiscordClient client,
- string text, bool isTTS, Embed embed, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent component, ISticker[] stickers, RequestOptions options, Embed[] embeds)
+ string text, bool isTTS, Embed embed, AllowedMentions allowedMentions, MessageReference messageReference, MessageComponent components, ISticker[] stickers, RequestOptions options, Embed[] embeds)
{
embeds ??= Array.Empty