예제 #1
0
    public async Task <Result <FeedbackMessage> > AffirmAutoroleForUserAsync
    (
        [DiscordTypeHint(TypeHint.Role)] AutoroleConfiguration autorole,
        IUser user
    )
    {
        var confirmResult = await _autoroles.ConfirmAutoroleAsync(autorole, user.ID);

        return(!confirmResult.IsSuccess
            ? Result <FeedbackMessage> .FromError(confirmResult)
            : new FeedbackMessage("Qualification affirmed.", _feedback.Theme.Secondary));
    }