Skip to content

Commit 1201db8

Browse files
committed
Add note about entry points in Commands#fromList
1 parent b38ba8b commit 1201db8

File tree

1 file changed

+6
-0
lines changed
  • src/main/java/net/dv8tion/jda/api/interactions/commands/build

1 file changed

+6
-0
lines changed

src/main/java/net/dv8tion/jda/api/interactions/commands/build/Commands.java

+6
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ public static EntryPointCommandData entryPoint(@Nonnull String name, @Nonnull St
159159
* Parses the provided serialization back into an CommandData instance.
160160
* <br>This is the reverse function for {@link CommandData#toData()}.
161161
*
162+
* <p><b>Note:</b> This does not take into account {@link #entryPoint(String, String) entry point commands}.
163+
*
162164
* @param array
163165
* Array of serialized {@link DataObject} representing the commands
164166
*
@@ -171,6 +173,7 @@ public static EntryPointCommandData entryPoint(@Nonnull String name, @Nonnull St
171173
*
172174
* @see CommandData#fromData(DataObject)
173175
* @see SlashCommandData#fromData(DataObject)
176+
* @see EntryPointCommandData#fromData(DataObject)
174177
*/
175178
@Nonnull
176179
public static List<CommandData> fromList(@Nonnull DataArray array)
@@ -185,6 +188,8 @@ public static List<CommandData> fromList(@Nonnull DataArray array)
185188
* Parses the provided serialization back into an CommandData instance.
186189
* <br>This is the reverse function for {@link CommandData#toData()}.
187190
*
191+
* <p><b>Note:</b> This does not take into account {@link #entryPoint(String, String) entry point commands}.
192+
*
188193
* @param collection
189194
* Collection of serialized {@link DataObject} representing the commands
190195
*
@@ -197,6 +202,7 @@ public static List<CommandData> fromList(@Nonnull DataArray array)
197202
*
198203
* @see CommandData#fromData(DataObject)
199204
* @see SlashCommandData#fromData(DataObject)
205+
* @see EntryPointCommandData#fromData(DataObject)
200206
*/
201207
@Nonnull
202208
public static List<CommandData> fromList(@Nonnull Collection<? extends DataObject> collection)

0 commit comments

Comments
 (0)