feature: Add inline replies (#1659)
* Add inline replies * Missed a few things * Change xml docs, IUserMessage, and other changes * Missed one when changing * Fix referencedMessage author
This commit is contained in:
@@ -68,6 +68,16 @@ namespace Discord.Rest
|
||||
Parse = entity.AllowedTypes?.EnumerateMentionTypes().ToArray(),
|
||||
Roles = entity.RoleIds?.ToArray(),
|
||||
Users = entity.UserIds?.ToArray(),
|
||||
RepliedUser = entity.MentionRepliedUser ?? Optional.Create<bool>(),
|
||||
};
|
||||
}
|
||||
public static API.MessageReference ToModel(this MessageReference entity)
|
||||
{
|
||||
return new API.MessageReference()
|
||||
{
|
||||
ChannelId = entity.InternalChannelId,
|
||||
GuildId = entity.GuildId,
|
||||
MessageId = entity.MessageId,
|
||||
};
|
||||
}
|
||||
public static IEnumerable<string> EnumerateMentionTypes(this AllowedMentionTypes mentionTypes)
|
||||
|
||||
Reference in New Issue
Block a user