예제 #1
0
        /// <summary>
        /// Removes a reaction from this message.
        /// <para>Requires <see cref="DiscordPermission.ManageMessages"/>.</para>
        /// </summary>
        /// <param name="user">The user who added the reacted.</param>
        /// <param name="reactionEmoji"></param>
        /// <exception cref="ArgumentNullException"></exception>
        /// <exception cref="DiscordHttpApiException"></exception>
        public Task DeleteUserReaction(DiscordUser user, DiscordReactionEmoji reactionEmoji)
        {
            if (user == null)
            {
                throw new ArgumentNullException(nameof(user));
            }

            return(http.DeleteUserReaction(ChannelId, Id, user.Id, reactionEmoji));
        }