mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
15 lines
442 B
C#
15 lines
442 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using DSharpPlus.CommandsNext;
|
|
using DSharpPlus.CommandsNext.Attributes;
|
|
|
|
namespace CompatBot.Commands.Attributes;
|
|
|
|
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, Inherited = false)]
|
|
internal class RequiresNotMedia: CheckBaseAttribute
|
|
{
|
|
public override Task<bool> ExecuteCheckAsync(CommandContext ctx, bool help)
|
|
{
|
|
return Task.FromResult(ctx.Channel.Name != "media");
|
|
}
|
|
} |