@@ -40,8 +40,8 @@ namespace Discord | |||||
/// Creates a new invite to this channel. | /// Creates a new invite to this channel. | ||||
/// </summary> | /// </summary> | ||||
/// <example> | /// <example> | ||||
/// The following example creates a new invite to this channel; the invite lasts for 12 hours and can only | |||||
/// be used 3 times throughout its lifespan. | |||||
/// <para>The following example creates a new invite to this channel; the invite lasts for 12 hours and can only | |||||
/// be used 3 times throughout its lifespan.</para> | |||||
/// <code language="cs"> | /// <code language="cs"> | ||||
/// await guildChannel.CreateInviteAsync(maxAge: 43200, maxUses: 3); | /// await guildChannel.CreateInviteAsync(maxAge: 43200, maxUses: 3); | ||||
/// </code> | /// </code> | ||||
@@ -60,8 +60,8 @@ namespace Discord | |||||
/// Gets a collection of all invites to this channel. | /// Gets a collection of all invites to this channel. | ||||
/// </summary>B | /// </summary>B | ||||
/// <example> | /// <example> | ||||
/// The following example gets all of the invites that have been created in this channel and selects the | |||||
/// most used invite. | |||||
/// <para>The following example gets all of the invites that have been created in this channel and selects the | |||||
/// most used invite.</para> | |||||
/// <code language="cs"> | /// <code language="cs"> | ||||
/// var invites = await channel.GetInvitesAsync(); | /// var invites = await channel.GetInvitesAsync(); | ||||
/// if (invites.Count == 0) return; | /// if (invites.Count == 0) return; | ||||
@@ -39,7 +39,7 @@ namespace Discord | |||||
/// Bulk-deletes multiple messages. | /// Bulk-deletes multiple messages. | ||||
/// </summary> | /// </summary> | ||||
/// <example> | /// <example> | ||||
/// The following example gets 250 messages from the channel and deletes them. | |||||
/// <para>The following example gets 250 messages from the channel and deletes them.</para> | |||||
/// <code language="cs"> | /// <code language="cs"> | ||||
/// var messages = await textChannel.GetMessagesAsync(250).FlattenAsync(); | /// var messages = await textChannel.GetMessagesAsync(250).FlattenAsync(); | ||||
/// await textChannel.DeleteMessagesAsync(messages); | /// await textChannel.DeleteMessagesAsync(messages); | ||||
@@ -510,7 +510,7 @@ namespace Discord | |||||
/// Creates a new text channel in this guild. | /// Creates a new text channel in this guild. | ||||
/// </summary> | /// </summary> | ||||
/// <example> | /// <example> | ||||
/// The following example creates a new text channel under an existing category named <c>Wumpus</c> with a set topic. | |||||
/// <para>The following example creates a new text channel under an existing category named <c>Wumpus</c> with a set topic.</para> | |||||
/// <code language="cs" region="CreateTextChannelAsync" | /// <code language="cs" region="CreateTextChannelAsync" | ||||
/// source="..\..\..\Discord.Net.Examples\Core\Entities\Guilds\IGuild.Examples.cs"/> | /// source="..\..\..\Discord.Net.Examples\Core\Entities\Guilds\IGuild.Examples.cs"/> | ||||
/// </example> | /// </example> | ||||
@@ -161,7 +161,7 @@ namespace Discord | |||||
/// Adds a reaction to this message. | /// Adds a reaction to this message. | ||||
/// </summary> | /// </summary> | ||||
/// <example> | /// <example> | ||||
/// The following example adds the reaction, <c>💕</c>, to the message. | |||||
/// <para>The following example adds the reaction, <c>💕</c>, to the message.</para> | |||||
/// <code language="cs"> | /// <code language="cs"> | ||||
/// await msg.AddReactionAsync(new Emoji("\U0001f495")); | /// await msg.AddReactionAsync(new Emoji("\U0001f495")); | ||||
/// </code> | /// </code> | ||||
@@ -177,7 +177,7 @@ namespace Discord | |||||
/// Removes a reaction from message. | /// Removes a reaction from message. | ||||
/// </summary> | /// </summary> | ||||
/// <example> | /// <example> | ||||
/// The following example removes the reaction, <c>💕</c>, added by the message author from the message. | |||||
/// <para>The following example removes the reaction, <c>💕</c>, added by the message author from the message.</para> | |||||
/// <code language="cs"> | /// <code language="cs"> | ||||
/// await msg.RemoveReactionAsync(new Emoji("\U0001f495"), msg.Author); | /// await msg.RemoveReactionAsync(new Emoji("\U0001f495"), msg.Author); | ||||
/// </code> | /// </code> | ||||
@@ -194,7 +194,7 @@ namespace Discord | |||||
/// Removes a reaction from message. | /// Removes a reaction from message. | ||||
/// </summary> | /// </summary> | ||||
/// <example> | /// <example> | ||||
/// The following example removes the reaction, <c>💕</c>, added by the user with ID 84291986575613952 from the message. | |||||
/// <para>The following example removes the reaction, <c>💕</c>, added by the user with ID 84291986575613952 from the message.</para> | |||||
/// <code language="cs"> | /// <code language="cs"> | ||||
/// await msg.RemoveReactionAsync(new Emoji("\U0001f495"), 84291986575613952); | /// await msg.RemoveReactionAsync(new Emoji("\U0001f495"), 84291986575613952); | ||||
/// </code> | /// </code> | ||||
@@ -220,7 +220,7 @@ namespace Discord | |||||
/// Gets all users that reacted to a message with a given emote. | /// Gets all users that reacted to a message with a given emote. | ||||
/// </summary> | /// </summary> | ||||
/// <example> | /// <example> | ||||
/// The following example gets the users that have reacted with the emoji <c>💕</c> to the message. | |||||
/// <para>The following example gets the users that have reacted with the emoji <c>💕</c> to the message.</para> | |||||
/// <code language="cs"> | /// <code language="cs"> | ||||
/// var emoji = new Emoji("\U0001f495"); | /// var emoji = new Emoji("\U0001f495"); | ||||
/// var reactedUsers = await message.GetReactionUsersAsync(emoji, 100).FlattenAsync(); | /// var reactedUsers = await message.GetReactionUsersAsync(emoji, 100).FlattenAsync(); | ||||
@@ -17,7 +17,7 @@ namespace Discord | |||||
/// method and what properties are available, please refer to <see cref="MessageProperties"/>. | /// method and what properties are available, please refer to <see cref="MessageProperties"/>. | ||||
/// </remarks> | /// </remarks> | ||||
/// <example> | /// <example> | ||||
/// The following example replaces the content of the message with <c>Hello World!</c>. | |||||
/// <para>The following example replaces the content of the message with <c>Hello World!</c>.</para> | |||||
/// <code language="cs"> | /// <code language="cs"> | ||||
/// await msg.ModifyAsync(x => x.Content = "Hello World!"); | /// await msg.ModifyAsync(x => x.Content = "Hello World!"); | ||||
/// </code> | /// </code> | ||||
@@ -72,8 +72,8 @@ namespace Discord | |||||
/// Gets the level permissions granted to this user to a given channel. | /// Gets the level permissions granted to this user to a given channel. | ||||
/// </summary> | /// </summary> | ||||
/// <example> | /// <example> | ||||
/// The following example checks if the current user has the ability to send a message with attachment in | |||||
/// this channel; if so, uploads a file via <see cref="IMessageChannel.SendFileAsync(string, string, bool, Embed, RequestOptions, bool)"/>. | |||||
/// <para>The following example checks if the current user has the ability to send a message with attachment in | |||||
/// this channel; if so, uploads a file via <see cref="IMessageChannel.SendFileAsync(string, string, bool, Embed, RequestOptions, bool)"/>.</para> | |||||
/// <code language="cs"> | /// <code language="cs"> | ||||
/// if (currentUser?.GetPermissions(targetChannel)?.AttachFiles) | /// if (currentUser?.GetPermissions(targetChannel)?.AttachFiles) | ||||
/// await targetChannel.SendFileAsync("fortnite.png"); | /// await targetChannel.SendFileAsync("fortnite.png"); | ||||
@@ -21,8 +21,8 @@ namespace Discord | |||||
/// example). | /// example). | ||||
/// </remarks> | /// </remarks> | ||||
/// <example> | /// <example> | ||||
/// The following example attempts to retrieve the user's current avatar and send it to a channel; if one is | |||||
/// not set, a default avatar for this user will be returned instead. | |||||
/// <para>The following example attempts to retrieve the user's current avatar and send it to a channel; if one is | |||||
/// not set, a default avatar for this user will be returned instead.</para> | |||||
/// <code language="cs" region="GetAvatarUrl" | /// <code language="cs" region="GetAvatarUrl" | ||||
/// source="..\..\..\Discord.Net.Examples\Core\Entities\Users\IUser.Examples.cs"/> | /// source="..\..\..\Discord.Net.Examples\Core\Entities\Users\IUser.Examples.cs"/> | ||||
/// </example> | /// </example> | ||||
@@ -90,8 +90,8 @@ namespace Discord | |||||
/// </note> | /// </note> | ||||
/// </remarks> | /// </remarks> | ||||
/// <example> | /// <example> | ||||
/// The following example attempts to send a direct message to the target user and logs the incident should | |||||
/// it fail. | |||||
/// <para>The following example attempts to send a direct message to the target user and logs the incident should | |||||
/// it fail.</para> | |||||
/// <code region="GetOrCreateDMChannelAsync" language="cs" | /// <code region="GetOrCreateDMChannelAsync" language="cs" | ||||
/// source="../../../Discord.Net.Examples/Core/Entities/Users/IUser.Examples.cs"/> | /// source="../../../Discord.Net.Examples/Core/Entities/Users/IUser.Examples.cs"/> | ||||
/// </example> | /// </example> | ||||
@@ -44,8 +44,8 @@ namespace Discord | |||||
/// Sends a file to this message channel with an optional caption. | /// Sends a file to this message channel with an optional caption. | ||||
/// </summary> | /// </summary> | ||||
/// <example> | /// <example> | ||||
/// The following example uploads a streamed image that will be called <c>b1nzy.jpg</c> embedded inside a | |||||
/// rich embed to the channel. | |||||
/// <para>The following example uploads a streamed image that will be called <c>b1nzy.jpg</c> embedded inside a | |||||
/// rich embed to the channel.</para> | |||||
/// <code language="cs"> | /// <code language="cs"> | ||||
/// await channel.SendFileAsync(b1nzyStream, "b1nzy.jpg", | /// await channel.SendFileAsync(b1nzyStream, "b1nzy.jpg", | ||||
/// embed: new EmbedBuilder {ImageUrl = "attachment://b1nzy.jpg"}.Build()); | /// embed: new EmbedBuilder {ImageUrl = "attachment://b1nzy.jpg"}.Build()); | ||||