diff --git a/src/Discord.Net.Core/Entities/Activities/Game.cs b/src/Discord.Net.Core/Entities/Activities/Game.cs
index 2d23e8b4c..471cc9f64 100644
--- a/src/Discord.Net.Core/Entities/Activities/Game.cs
+++ b/src/Discord.Net.Core/Entities/Activities/Game.cs
@@ -3,7 +3,7 @@ using System.Diagnostics;
namespace Discord
{
///
- /// A user's game activity.
+ /// A user's game status.
///
[DebuggerDisplay(@"{DebuggerDisplay,nq}")]
public class Game : IActivity
diff --git a/src/Discord.Net.Core/Entities/Activities/GameAsset.cs b/src/Discord.Net.Core/Entities/Activities/GameAsset.cs
index 815967ce3..b0c8ea975 100644
--- a/src/Discord.Net.Core/Entities/Activities/GameAsset.cs
+++ b/src/Discord.Net.Core/Entities/Activities/GameAsset.cs
@@ -1,7 +1,7 @@
namespace Discord
{
///
- /// An asset for a object.
+ /// An asset for a object containing the text and image.
///
public class GameAsset
{
diff --git a/src/Discord.Net.Core/Entities/Activities/GameParty.cs b/src/Discord.Net.Core/Entities/Activities/GameParty.cs
index c070176f0..c3449df36 100644
--- a/src/Discord.Net.Core/Entities/Activities/GameParty.cs
+++ b/src/Discord.Net.Core/Entities/Activities/GameParty.cs
@@ -1,11 +1,14 @@
namespace Discord
{
+ ///
+ /// Party information for a object.
+ ///
public class GameParty
{
internal GameParty() { }
///
- /// Gets the id of the party.
+ /// Gets the ID of the party.
///
public string Id { get; internal set; }
public long Members { get; internal set; }
diff --git a/src/Discord.Net.Core/Entities/Activities/GameSecrets.cs b/src/Discord.Net.Core/Entities/Activities/GameSecrets.cs
index f2daeffee..595b8851c 100644
--- a/src/Discord.Net.Core/Entities/Activities/GameSecrets.cs
+++ b/src/Discord.Net.Core/Entities/Activities/GameSecrets.cs
@@ -1,5 +1,8 @@
namespace Discord
{
+ ///
+ /// Party secret for a object.
+ ///
public class GameSecrets
{
///
diff --git a/src/Discord.Net.Core/Entities/Activities/IActivity.cs b/src/Discord.Net.Core/Entities/Activities/IActivity.cs
index 37f058c2b..30d936952 100644
--- a/src/Discord.Net.Core/Entities/Activities/IActivity.cs
+++ b/src/Discord.Net.Core/Entities/Activities/IActivity.cs
@@ -1,7 +1,7 @@
namespace Discord
{
///
- /// A Discord activity, typically a game.
+ /// A user's activity status, typically a .
///
public interface IActivity
{
diff --git a/src/Discord.Net.Core/Entities/Activities/RichGame.cs b/src/Discord.Net.Core/Entities/Activities/RichGame.cs
index c6e141482..2455fd557 100644
--- a/src/Discord.Net.Core/Entities/Activities/RichGame.cs
+++ b/src/Discord.Net.Core/Entities/Activities/RichGame.cs
@@ -2,6 +2,9 @@ using System.Diagnostics;
namespace Discord
{
+ ///
+ /// A user's Rich Presence status.
+ ///
[DebuggerDisplay(@"{DebuggerDisplay,nq}")]
public class RichGame : Game
{
diff --git a/src/Discord.Net.Core/Entities/Channels/Direction.cs b/src/Discord.Net.Core/Entities/Channels/Direction.cs
index 750d928e5..6d5f7cd6b 100644
--- a/src/Discord.Net.Core/Entities/Channels/Direction.cs
+++ b/src/Discord.Net.Core/Entities/Channels/Direction.cs
@@ -1,13 +1,21 @@
namespace Discord
{
- /// Specifies the direction of where message(s) should be gotten from.
+ ///
+ /// Specifies the direction of where message(s) should be gotten from.
+ ///
public enum Direction
{
- /// The message(s) should be retrieved before a message.
+ ///
+ /// The message(s) should be retrieved before a message.
+ ///
Before,
- /// The message(s) should be retrieved after a message.
+ ///
+ /// The message(s) should be retrieved after a message.
+ ///
After,
- /// The message(s) should be retrieved around a message.
+ ///
+ /// The message(s) should be retrieved around a message.
+ ///
Around
}
}
diff --git a/src/Discord.Net.Core/Entities/Channels/ICategoryChannel.cs b/src/Discord.Net.Core/Entities/Channels/ICategoryChannel.cs
index c47318823..838908b68 100644
--- a/src/Discord.Net.Core/Entities/Channels/ICategoryChannel.cs
+++ b/src/Discord.Net.Core/Entities/Channels/ICategoryChannel.cs
@@ -1,7 +1,7 @@
namespace Discord
{
///
- /// Represents a generic category channel.
+ /// Represents a generic category channel.
///
public interface ICategoryChannel : IGuildChannel
{
diff --git a/src/Discord.Net.Core/Entities/Channels/IGroupChannel.cs b/src/Discord.Net.Core/Entities/Channels/IGroupChannel.cs
index 2c329f896..75795f582 100644
--- a/src/Discord.Net.Core/Entities/Channels/IGroupChannel.cs
+++ b/src/Discord.Net.Core/Entities/Channels/IGroupChannel.cs
@@ -3,7 +3,7 @@ using System.Threading.Tasks;
namespace Discord
{
///
- /// Represents a generic group channel.
+ /// Represents a private generic group channel.
///
public interface IGroupChannel : IMessageChannel, IPrivateChannel, IAudioChannel
{
diff --git a/src/Discord.Net.Core/Entities/Channels/IMessageChannel.cs b/src/Discord.Net.Core/Entities/Channels/IMessageChannel.cs
index 906f00179..1d855ba08 100644
--- a/src/Discord.Net.Core/Entities/Channels/IMessageChannel.cs
+++ b/src/Discord.Net.Core/Entities/Channels/IMessageChannel.cs
@@ -16,12 +16,12 @@ namespace Discord
Task SendMessageAsync(string text, bool isTTS = false, Embed embed = null, RequestOptions options = null);
#if FILESYSTEM
///
- /// Sends a file to this channel, with an optional caption.
+ /// Sends a file to this message channel, with an optional caption.
///
Task SendFileAsync(string filePath, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null);
#endif
///
- /// Sends a file to this channel, with an optional caption.
+ /// Sends a file to this message channel, with an optional caption.
///
Task SendFileAsync(Stream stream, string filename, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null);
diff --git a/src/Discord.Net.Core/Entities/Emotes/EmoteProperties.cs b/src/Discord.Net.Core/Entities/Emotes/EmoteProperties.cs
index be24d306c..255bf0721 100644
--- a/src/Discord.Net.Core/Entities/Emotes/EmoteProperties.cs
+++ b/src/Discord.Net.Core/Entities/Emotes/EmoteProperties.cs
@@ -1,10 +1,19 @@
-using System.Collections.Generic;
+using System.Collections.Generic;
namespace Discord
{
+ ///
+ /// Properties that are used to modify an with the specified changes.
+ ///
public class EmoteProperties
{
+ ///
+ /// Gets or sets the name of the .
+ ///
public Optional Name { get; set; }
+ ///
+ /// Gets or sets the roles that can access this .
+ ///
public Optional> Roles { get; set; }
}
}
diff --git a/src/Discord.Net.Core/Entities/Emotes/GuildEmote.cs b/src/Discord.Net.Core/Entities/Emotes/GuildEmote.cs
index 126fe0fd3..149a0f284 100644
--- a/src/Discord.Net.Core/Entities/Emotes/GuildEmote.cs
+++ b/src/Discord.Net.Core/Entities/Emotes/GuildEmote.cs
@@ -9,8 +9,17 @@ namespace Discord
[DebuggerDisplay(@"{DebuggerDisplay,nq}")]
public class GuildEmote : Emote
{
+ ///
+ /// Gets whether this emoji is managed.
+ ///
public bool IsManaged { get; }
+ ///
+ /// Gets whether this emoji must be wrapped in colons.
+ ///
public bool RequireColons { get; }
+ ///
+ /// Gets the roles this emoji is whitelisted to.
+ ///
public IReadOnlyList RoleIds { get; }
internal GuildEmote(ulong id, string name, bool animated, bool isManaged, bool requireColons, IReadOnlyList roleIds) : base(id, name, animated)
@@ -21,6 +30,9 @@ namespace Discord
}
private string DebuggerDisplay => $"{Name} ({Id})";
+ ///
+ /// Gets the raw representation of the emoji.
+ ///
public override string ToString() => $"<{(Animated ? "a" : "")}:{Name}:{Id}>";
}
}
diff --git a/src/Discord.Net.Core/Entities/IApplication.cs b/src/Discord.Net.Core/Entities/IApplication.cs
index 4fb1e4b91..eb9fddd89 100644
--- a/src/Discord.Net.Core/Entities/IApplication.cs
+++ b/src/Discord.Net.Core/Entities/IApplication.cs
@@ -1,13 +1,31 @@
-namespace Discord
+namespace Discord
{
+ ///
+ /// Represents a Discord application created via the developer portal.
+ ///
public interface IApplication : ISnowflakeEntity
{
+ ///
+ /// Gets the name of the application.
+ ///
string Name { get; }
+ ///
+ /// Gets the description of the application.
+ ///
string Description { get; }
+ ///
+ /// Gets the RPC origins of the application.
+ ///
string[] RPCOrigins { get; }
ulong Flags { get; }
+ ///
+ /// Gets the icon URL of the application.
+ ///
string IconUrl { get; }
+ ///
+ /// Gets the partial user object containing info on the owner of the application.
+ ///
IUser Owner { get; }
}
}
diff --git a/src/Discord.Net.Core/Entities/Invites/IInviteMetadata.cs b/src/Discord.Net.Core/Entities/Invites/IInviteMetadata.cs
index f311e25b7..dcd3de997 100644
--- a/src/Discord.Net.Core/Entities/Invites/IInviteMetadata.cs
+++ b/src/Discord.Net.Core/Entities/Invites/IInviteMetadata.cs
@@ -2,7 +2,7 @@ using System;
namespace Discord
{
- /// Represents additional information regarding the invite object.
+ /// Represents additional information regarding the generic invite object.
public interface IInviteMetadata : IInvite
{
///
diff --git a/src/Discord.Net.Core/Entities/Messages/EmbedAuthor.cs b/src/Discord.Net.Core/Entities/Messages/EmbedAuthor.cs
index e19d7619a..ab1360ce3 100644
--- a/src/Discord.Net.Core/Entities/Messages/EmbedAuthor.cs
+++ b/src/Discord.Net.Core/Entities/Messages/EmbedAuthor.cs
@@ -1,4 +1,3 @@
-using System;
using System.Diagnostics;
namespace Discord
diff --git a/src/Discord.Net.Core/Entities/Messages/EmbedFooter.cs b/src/Discord.Net.Core/Entities/Messages/EmbedFooter.cs
index 591c90642..cd3839ac6 100644
--- a/src/Discord.Net.Core/Entities/Messages/EmbedFooter.cs
+++ b/src/Discord.Net.Core/Entities/Messages/EmbedFooter.cs
@@ -1,4 +1,3 @@
-using System;
using System.Diagnostics;
namespace Discord
diff --git a/src/Discord.Net.Core/Entities/Messages/EmbedImage.cs b/src/Discord.Net.Core/Entities/Messages/EmbedImage.cs
index 0c59f6407..b71e77721 100644
--- a/src/Discord.Net.Core/Entities/Messages/EmbedImage.cs
+++ b/src/Discord.Net.Core/Entities/Messages/EmbedImage.cs
@@ -1,4 +1,3 @@
-using System;
using System.Diagnostics;
namespace Discord
diff --git a/src/Discord.Net.Core/Entities/Messages/EmbedProvider.cs b/src/Discord.Net.Core/Entities/Messages/EmbedProvider.cs
index f536224b0..365f6b85f 100644
--- a/src/Discord.Net.Core/Entities/Messages/EmbedProvider.cs
+++ b/src/Discord.Net.Core/Entities/Messages/EmbedProvider.cs
@@ -1,4 +1,3 @@
-using System;
using System.Diagnostics;
namespace Discord
diff --git a/src/Discord.Net.Core/Entities/Messages/EmbedThumbnail.cs b/src/Discord.Net.Core/Entities/Messages/EmbedThumbnail.cs
index 6196b1342..3d00cfb2e 100644
--- a/src/Discord.Net.Core/Entities/Messages/EmbedThumbnail.cs
+++ b/src/Discord.Net.Core/Entities/Messages/EmbedThumbnail.cs
@@ -1,4 +1,3 @@
-using System;
using System.Diagnostics;
namespace Discord
diff --git a/src/Discord.Net.Core/Entities/Messages/EmbedType.cs b/src/Discord.Net.Core/Entities/Messages/EmbedType.cs
index 7bfc9ec3d..978f45bc2 100644
--- a/src/Discord.Net.Core/Entities/Messages/EmbedType.cs
+++ b/src/Discord.Net.Core/Entities/Messages/EmbedType.cs
@@ -1,25 +1,45 @@
namespace Discord
{
- /// Specifies the type of embed.
+ ///
+ /// Specifies the type of embed.
+ ///
public enum EmbedType
{
- /// An unknown embed type.
+ ///
+ /// An unknown embed type.
+ ///
Unknown = -1,
- /// A rich embed type.
+ ///
+ /// A rich embed type.
+ ///
Rich,
- /// A link embed type.
+ ///
+ /// A link embed type.
+ ///
Link,
- /// A video embed type.
+ ///
+ /// A video embed type.
+ ///
Video,
- /// An image embed type.
+ ///
+ /// An image embed type.
+ ///
Image,
- /// A GIFV embed type.
+ ///
+ /// A GIFV embed type.
+ ///
Gifv,
- /// An article embed type.
+ ///
+ /// An article embed type.
+ ///
Article,
- /// A tweet embed type.
+ ///
+ /// A tweet embed type.
+ ///
Tweet,
- /// A HTML embed type.
+ ///
+ /// A HTML embed type.
+ ///
Html,
}
}
diff --git a/src/Discord.Net.Core/Entities/Messages/EmbedVideo.cs b/src/Discord.Net.Core/Entities/Messages/EmbedVideo.cs
index 1ee03b70c..525c25562 100644
--- a/src/Discord.Net.Core/Entities/Messages/EmbedVideo.cs
+++ b/src/Discord.Net.Core/Entities/Messages/EmbedVideo.cs
@@ -1,17 +1,24 @@
-using System;
using System.Diagnostics;
namespace Discord
{
- /// A video featured in an .
+ ///
+ /// A video featured in an .
+ ///
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public struct EmbedVideo
{
- /// Gets the URL of the video.
+ ///
+ /// Gets the URL of the video.
+ ///
public string Url { get; }
- /// Gets the height of the video if there is any.
+ ///
+ /// Gets the height of the video, or if none.
+ ///
public int? Height { get; }
- /// Gets the weight of the video if there is any.
+ ///
+ /// Gets the weight of the video, or if none.
+ ///
public int? Width { get; }
internal EmbedVideo(string url, int? height, int? width)
@@ -22,6 +29,9 @@ namespace Discord
}
private string DebuggerDisplay => $"{Url} ({(Width != null && Height != null ? $"{Width}x{Height}" : "0x0")})";
- public override string ToString() => Url.ToString();
+ ///
+ /// Gets the URL of the video.
+ ///
+ public override string ToString() => Url;
}
}
diff --git a/src/Discord.Net.Core/Entities/Messages/IAttachment.cs b/src/Discord.Net.Core/Entities/Messages/IAttachment.cs
index 408153df1..f01876186 100644
--- a/src/Discord.Net.Core/Entities/Messages/IAttachment.cs
+++ b/src/Discord.Net.Core/Entities/Messages/IAttachment.cs
@@ -1,22 +1,38 @@
namespace Discord
{
- /// Represents a Discord attachment.
+ ///
+ /// Represents a Discord attachment.
+ ///
public interface IAttachment
{
- /// Gets the snowflake ID of the attachment.
+ ///
+ /// Gets the snowflake ID of the attachment.
+ ///
ulong Id { get; }
- /// Gets the filename of the attachment.
+ ///
+ /// Gets the filename of the attachment.
+ ///
string Filename { get; }
- /// Gets the URL of the attachment.
+ ///
+ /// Gets the URL of the attachment.
+ ///
string Url { get; }
- /// Gets the proxied URL of the attachment.
+ ///
+ /// Gets the proxied URL of the attachment.
+ ///
string ProxyUrl { get; }
- /// Gets the file size of the attachment.
+ ///
+ /// Gets the file size of the attachment.
+ ///
int Size { get; }
- /// Gets the height of the attachment if it is an image, or return when it is not.
+ ///
+ /// Gets the height of the attachment if it is an image, or return when it is not.
+ ///
int? Height { get; }
- /// Gets the width of the attachment if it is an image, or return when it is not.
+ ///
+ /// Gets the width of the attachment if it is an image, or return when it is not.
+ ///
int? Width { get; }
}
}
diff --git a/src/Discord.Net.Core/Entities/Messages/IEmbed.cs b/src/Discord.Net.Core/Entities/Messages/IEmbed.cs
index 77b43c25d..473a61ed5 100644
--- a/src/Discord.Net.Core/Entities/Messages/IEmbed.cs
+++ b/src/Discord.Net.Core/Entities/Messages/IEmbed.cs
@@ -3,34 +3,62 @@ using System.Collections.Immutable;
namespace Discord
{
- /// Represents a Discord embed object.
+ ///
+ /// Represents a Discord embed object.
+ ///
public interface IEmbed
{
- /// Gets the title URL of the embed.
+ ///
+ /// Gets the title URL of the embed.
+ ///
string Url { get; }
- /// Gets the title of the embed.
+ ///
+ /// Gets the title of the embed.
+ ///
string Title { get; }
- /// Gets the description of the embed.
+ ///
+ /// Gets the description of the embed.
+ ///
string Description { get; }
- /// Gets the type of the embed.
+ ///
+ /// Gets the type of the embed.
+ ///
EmbedType Type { get; }
- /// Gets the timestamp of the embed.
+ ///
+ /// Gets the timestamp of the embed, or if none is set.
+ ///
DateTimeOffset? Timestamp { get; }
- /// Gets the sidebar color of the embed.
+ ///
+ /// Gets the sidebar color of the embed, or if none is set.
+ ///
Color? Color { get; }
- /// Gets the image of the embed.
+ ///
+ /// Gets the image of the embed, or if none is set.
+ ///
EmbedImage? Image { get; }
- /// Gets the video of the embed.
+ ///
+ /// Gets the video of the embed, or if none is set.
+ ///
EmbedVideo? Video { get; }
- /// Gets the author field of the embed.
+ ///
+ /// Gets the author field of the embed, or if none is set.
+ ///
EmbedAuthor? Author { get; }
- /// Gets the footer field of the embed.
+ ///
+ /// Gets the footer field of the embed, or if none is set.
+ ///
EmbedFooter? Footer { get; }
- /// Gets the provider of the embed.
+ ///
+ /// Gets the provider of the embed, or if none is set.
+ ///
EmbedProvider? Provider { get; }
- /// Gets the thumbnail featured in the embed.
+ ///
+ /// Gets the thumbnail featured in the embed, or if none is set.
+ ///
EmbedThumbnail? Thumbnail { get; }
- /// Gets the fields of the embed.
+ ///
+ /// Gets the fields of the embed.
+ ///
ImmutableArray Fields { get; }
}
}
diff --git a/src/Discord.Net.Core/Entities/Messages/IMessage.cs b/src/Discord.Net.Core/Entities/Messages/IMessage.cs
index 7d4a749f7..e390fa682 100644
--- a/src/Discord.Net.Core/Entities/Messages/IMessage.cs
+++ b/src/Discord.Net.Core/Entities/Messages/IMessage.cs
@@ -3,40 +3,72 @@ using System.Collections.Generic;
namespace Discord
{
- /// Represents a Discord message object.
+ ///
+ /// Represents a Discord message object.
+ ///
public interface IMessage : ISnowflakeEntity, IDeletable
{
- /// Gets the type of this system message.
+ ///
+ /// Gets the type of this system message.
+ ///
MessageType Type { get; }
- /// Gets the source of this message.
+ ///
+ /// Gets the source type of this message.
+ ///
MessageSource Source { get; }
- /// Returns true if this message was sent as a text-to-speech message.
+ ///
+ /// Returns if this message was sent as a text-to-speech message.
+ ///
bool IsTTS { get; }
- /// Returns true if this message was added to its channel's pinned messages.
+ ///
+ /// Returns if this message was added to its channel's pinned messages.
+ ///
bool IsPinned { get; }
- /// Returns the content for this message.
+ ///
+ /// Returns the content for this message.
+ ///
string Content { get; }
- /// Gets the time this message was sent.
+ ///
+ /// Gets the time this message was sent.
+ ///
DateTimeOffset Timestamp { get; }
- /// Gets the time of this message's last edit, if any.
+ ///
+ /// Gets the time of this message's last edit, or if none is set.
+ ///
DateTimeOffset? EditedTimestamp { get; }
- /// Gets the channel this message was sent to.
+ ///
+ /// Gets the channel this message was sent to.
+ ///
IMessageChannel Channel { get; }
- /// Gets the author of this message.
+ ///
+ /// Gets the author of this message.
+ ///
IUser Author { get; }
- /// Returns all attachments included in this message.
+ ///
+ /// Returns all attachments included in this message.
+ ///
IReadOnlyCollection Attachments { get; }
- /// Returns all embeds included in this message.
+ ///
+ /// Returns all embeds included in this message.
+ ///
IReadOnlyCollection Embeds { get; }
- /// Returns all tags included in this message's content.
+ ///
+ /// Returns all tags included in this message's content.
+ ///
IReadOnlyCollection Tags { get; }
- /// Returns the ids of channels mentioned in this message.
+ ///
+ /// Returns the IDs of channels mentioned in this message.
+ ///
IReadOnlyCollection MentionedChannelIds { get; }
- /// Returns the ids of roles mentioned in this message.
+ ///
+ /// Returns the IDs of roles mentioned in this message.
+ ///
IReadOnlyCollection MentionedRoleIds { get; }
- /// Returns the ids of users mentioned in this message.
+ ///
+ /// Returns the IDs of users mentioned in this message.
+ ///
IReadOnlyCollection MentionedUserIds { get; }
}
}
diff --git a/src/Discord.Net.Core/Entities/Messages/IReaction.cs b/src/Discord.Net.Core/Entities/Messages/IReaction.cs
index 6325901f8..b7d7128c0 100644
--- a/src/Discord.Net.Core/Entities/Messages/IReaction.cs
+++ b/src/Discord.Net.Core/Entities/Messages/IReaction.cs
@@ -1,9 +1,13 @@
namespace Discord
{
- /// Represents a Discord reaction object.
+ ///
+ /// Represents a generic reaction object.
+ ///
public interface IReaction
{
- /// The used in the reaction.
+ ///
+ /// The used in the reaction.
+ ///
IEmote Emote { get; }
}
}
diff --git a/src/Discord.Net.Core/Entities/Messages/ISystemMessage.cs b/src/Discord.Net.Core/Entities/Messages/ISystemMessage.cs
index 1ef6df3c1..0f5a171d1 100644
--- a/src/Discord.Net.Core/Entities/Messages/ISystemMessage.cs
+++ b/src/Discord.Net.Core/Entities/Messages/ISystemMessage.cs
@@ -1,6 +1,8 @@
namespace Discord
{
- /// Represents a message sent by the system.
+ ///
+ /// Represents a message sent by the system.
+ ///
public interface ISystemMessage : IMessage
{
}
diff --git a/src/Discord.Net.Core/Entities/Messages/IUserMessage.cs b/src/Discord.Net.Core/Entities/Messages/IUserMessage.cs
index 652846d8c..1afb3a3b2 100644
--- a/src/Discord.Net.Core/Entities/Messages/IUserMessage.cs
+++ b/src/Discord.Net.Core/Entities/Messages/IUserMessage.cs
@@ -4,29 +4,49 @@ using System.Threading.Tasks;
namespace Discord
{
- /// Represents a Discord message object.
+ ///
+ /// Represents a Discord message object.
+ ///
public interface IUserMessage : IMessage
{
- /// Modifies this message.
+ ///
+ /// Modifies this message.
+ ///
Task ModifyAsync(Action func, RequestOptions options = null);
- /// Adds this message to its channel's pinned messages.
+ ///
+ /// Adds this message to its channel's pinned messages.
+ ///
Task PinAsync(RequestOptions options = null);
- /// Removes this message from its channel's pinned messages.
+ ///
+ /// Removes this message from its channel's pinned messages.
+ ///
Task UnpinAsync(RequestOptions options = null);
- /// Returns all reactions included in this message.
+ ///
+ /// Returns all reactions included in this message.
+ ///
IReadOnlyDictionary Reactions { get; }
- /// Adds a reaction to this message.
+ ///
+ /// Adds a reaction to this message.
+ ///
Task AddReactionAsync(IEmote emote, RequestOptions options = null);
- /// Removes a reaction from message.
+ ///
+ /// Removes a reaction from message.
+ ///
Task RemoveReactionAsync(IEmote emote, IUser user, RequestOptions options = null);
- /// Removes all reactions from this message.
+ ///
+ /// Removes all reactions from this message.
+ ///
Task RemoveAllReactionsAsync(RequestOptions options = null);
- /// Gets all users that reacted to a message with a given emote.
+ ///
+ /// Gets all users that reacted to a message with a given emote.
+ ///
Task> GetReactionUsersAsync(IEmote emoji, int limit = 100, ulong? afterUserId = null, RequestOptions options = null);
- /// Transforms this message's text into a human-readable form by resolving its tags.
+ ///
+ /// Transforms this message's text into a human-readable form by resolving its tags.
+ ///
string Resolve(
TagHandling userHandling = TagHandling.Name,
TagHandling channelHandling = TagHandling.Name,
diff --git a/src/Discord.Net.Core/Entities/Messages/MessageProperties.cs b/src/Discord.Net.Core/Entities/Messages/MessageProperties.cs
index 788ea25a5..9daec32d3 100644
--- a/src/Discord.Net.Core/Entities/Messages/MessageProperties.cs
+++ b/src/Discord.Net.Core/Entities/Messages/MessageProperties.cs
@@ -1,36 +1,36 @@
namespace Discord
{
///
- /// Properties that are used to modify an with the specified changes.
+ /// Properties that are used to modify an with the specified changes.
///
///
- /// The content of a message can be cleared with String.Empty; if and only if an Embed is present.
+ /// The content of a message can be cleared with String.Empty; if and only if an Embed is present.
///
///
- ///
- /// var message = await ReplyAsync("abc");
- /// await message.ModifyAsync(x =>
- /// {
- /// x.Content = "";
- /// x.Embed = new EmbedBuilder()
- /// .WithColor(new Color(40, 40, 120))
- /// .WithAuthor(a => a.Name = "foxbot")
- /// .WithTitle("Embed!")
- /// .WithDescription("This is an embed.");
- /// });
- ///
+ ///
+ /// var message = await ReplyAsync("abc");
+ /// await message.ModifyAsync(x =>
+ /// {
+ /// x.Content = "";
+ /// x.Embed = new EmbedBuilder()
+ /// .WithColor(new Color(40, 40, 120))
+ /// .WithAuthor(a => a.Name = "foxbot")
+ /// .WithTitle("Embed!")
+ /// .WithDescription("This is an embed.");
+ /// });
+ ///
///
public class MessageProperties
{
///
- /// The content of the message.
+ /// Gets or sets the content of the message.
///
///
- /// This must be less than 2000 characters.
+ /// This must be less than 2000 characters.
///
public Optional Content { get; set; }
///
- /// The embed the message should display.
+ /// Gets or sets the embed the message should display.
///
public Optional