Skip to content

Commit

Permalink
chore: note that commands next is not implemented yet
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby committed Mar 29, 2023
1 parent 6638373 commit 8abc96f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@
using System;
using System.Threading.Tasks;

using DisCatSharp.Attributes;
using DisCatSharp.Extensions.TwoFactorCommands;

namespace DisCatSharp.CommandsNext.Attributes;

/// <summary>
/// Defines that this command can only be executed if the user is enrolled in two factor auth.
/// </summary>
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, Inherited = false)]
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, Inherited = false), Experimental("No support for this yet")]
public sealed class CommandRequireTwoFactorAttribute : CheckBaseAttribute
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

using System.Threading.Tasks;

using DisCatSharp.Attributes;
using DisCatSharp.CommandsNext;
using DisCatSharp.Extensions.TwoFactorCommands.Enums;

Expand All @@ -37,6 +38,7 @@ public static class TwoFactorCommandsNextExtension
/// </summary>
/// <param name="ctx">The command context.</param>
/// <returns>A <see cref="TwoFactorResponse"/>.</returns>
[Experimental("No support for this yet. Not implemented")]
public static async Task<TwoFactorResponse> AskForTwoFactorAsync(CommandContext ctx)
=> await Task.FromResult(TwoFactorResponse.NotImplemented);
}

0 comments on commit 8abc96f

Please sign in to comment.