Skip to content

Commit 2fb3565

Browse files
authored
Document that components in modals can't be disabled (#2919)
1 parent 9c58b9a commit 2fb3565

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/net/dv8tion/jda/api/components/ActionComponent.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ public interface ActionComponent extends IDisableable, ICustomId
4444
/**
4545
* Returns a copy of this component with {@link #isDisabled()} set to true.
4646
*
47+
* <p><b>Note:</b> Components in modals cannot be disabled.
48+
*
4749
* @return New disabled component instance
4850
*/
4951
@Nonnull
@@ -68,6 +70,8 @@ default ActionComponent asEnabled()
6870
/**
6971
* Returns a copy of this component with {@link #isDisabled()} set to the provided value.
7072
*
73+
* <p><b>Note:</b> Components in modals cannot be disabled.
74+
*
7175
* @param disabled
7276
* True, if this component should be disabled
7377
*

0 commit comments

Comments
 (0)