Skip to content

Commit

Permalink
Add note about entry points in Commands#fromList
Browse files Browse the repository at this point in the history
  • Loading branch information
freya022 committed Nov 4, 2024
1 parent b38ba8b commit 1201db8
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ public static EntryPointCommandData entryPoint(@Nonnull String name, @Nonnull St
* Parses the provided serialization back into an CommandData instance.
* <br>This is the reverse function for {@link CommandData#toData()}.
*
* <p><b>Note:</b> This does not take into account {@link #entryPoint(String, String) entry point commands}.
*
* @param array
* Array of serialized {@link DataObject} representing the commands
*
Expand All @@ -171,6 +173,7 @@ public static EntryPointCommandData entryPoint(@Nonnull String name, @Nonnull St
*
* @see CommandData#fromData(DataObject)
* @see SlashCommandData#fromData(DataObject)
* @see EntryPointCommandData#fromData(DataObject)
*/
@Nonnull
public static List<CommandData> fromList(@Nonnull DataArray array)
Expand All @@ -185,6 +188,8 @@ public static List<CommandData> fromList(@Nonnull DataArray array)
* Parses the provided serialization back into an CommandData instance.
* <br>This is the reverse function for {@link CommandData#toData()}.
*
* <p><b>Note:</b> This does not take into account {@link #entryPoint(String, String) entry point commands}.
*
* @param collection
* Collection of serialized {@link DataObject} representing the commands
*
Expand All @@ -197,6 +202,7 @@ public static List<CommandData> fromList(@Nonnull DataArray array)
*
* @see CommandData#fromData(DataObject)
* @see SlashCommandData#fromData(DataObject)
* @see EntryPointCommandData#fromData(DataObject)
*/
@Nonnull
public static List<CommandData> fromList(@Nonnull Collection<? extends DataObject> collection)
Expand Down

0 comments on commit 1201db8

Please sign in to comment.