You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System;
-
- namespace Discord.Interactions
- {
- /// <summary>
- /// Sets the <see cref="IApplicationCommandInfo.IsEnabledInDm"/> property of an application command or module.
- /// </summary>
- [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
- public class EnabledInDmAttribute : Attribute
- {
- /// <summary>
- /// Gets whether or not this command can be used in DMs.
- /// </summary>
- public bool IsEnabled { get; }
-
- /// <summary>
- /// Sets the <see cref="IApplicationCommandInfo.IsEnabledInDm"/> property of an application command or module.
- /// </summary>
- /// <param name="isEnabled">Whether or not this command can be used in DMs.</param>
- public EnabledInDmAttribute(bool isEnabled)
- {
- IsEnabled = isEnabled;
- }
- }
- }
|