@@ -789,7 +789,7 @@ default CommandCreateAction upsertCommand(@Nonnull String name, @Nonnull String
789789 * jda.updateCommands()
790790 * .addCommands(Commands.slash("ping", "Gives the current ping"))
791791 * .addCommands(Commands.slash("ban", "Ban the target user")
792- * .setGuildOnly(true )
792+ * .setContexts(InteractionContextType.GUILD )
793793 * .setDefaultPermissions(DefaultMemberPermissions.enabledFor(Permission.BAN_MEMBERS))
794794 * .addOption(OptionType.USER, "user", "The user to ban", true))
795795 * .queue();
@@ -917,59 +917,6 @@ default RestAction<Void> deleteCommandById(long commandId)
917917 @ CheckReturnValue
918918 RestAction <List <RoleConnectionMetadata >> updateRoleConnectionMetadata (@ Nonnull Collection <? extends RoleConnectionMetadata > records );
919919
920- /**
921- * Constructs a new {@link Guild Guild} with the specified name
922- * <br>Use the returned {@link GuildAction GuildAction} to provide
923- * further details and settings for the resulting Guild!
924- *
925- * <p>This RestAction does not provide the resulting Guild!
926- * It will be in a following {@link net.dv8tion.jda.api.events.guild.GuildJoinEvent GuildJoinEvent}.
927- *
928- * @param name
929- * The name of the resulting guild
930- *
931- * @throws java.lang.IllegalStateException
932- * If the currently logged in account is in 10 or more guilds
933- * @throws java.lang.IllegalArgumentException
934- * If the provided name is empty, {@code null} or not between 2-100 characters
935- *
936- * @return {@link GuildAction GuildAction}
937- * <br>Allows for setting various details for the resulting Guild
938- */
939- @ Nonnull
940- @ CheckReturnValue
941- GuildAction createGuild (@ Nonnull String name );
942-
943- /**
944- * Constructs a new {@link Guild Guild} from the specified template code.
945- *
946- * <p>This RestAction does not provide the resulting Guild!
947- * It will be in a following {@link net.dv8tion.jda.api.events.guild.GuildJoinEvent GuildJoinEvent}.
948- *
949- * <p>Possible {@link net.dv8tion.jda.api.requests.ErrorResponse ErrorResponses} include:
950- * <ul>
951- * <li>{@link net.dv8tion.jda.api.requests.ErrorResponse#UNKNOWN_GUILD_TEMPLATE Unknown Guild Template}
952- * <br>The template doesn't exist.</li>
953- * </ul>
954- *
955- * @param code
956- * The template code to use to create a guild
957- * @param name
958- * The name of the resulting guild
959- * @param icon
960- * The {@link net.dv8tion.jda.api.entities.Icon Icon} to use, or null to use no icon
961- *
962- * @throws java.lang.IllegalStateException
963- * If the currently logged in account is in 10 or more guilds
964- * @throws java.lang.IllegalArgumentException
965- * If the provided name is empty, {@code null} or not between 2-100 characters
966- *
967- * @return {@link net.dv8tion.jda.api.requests.RestAction RestAction}
968- */
969- @ Nonnull
970- @ CheckReturnValue
971- RestAction <Void > createGuildFromTemplate (@ Nonnull String code , @ Nonnull String name , @ Nullable Icon icon );
972-
973920 /**
974921 * {@link net.dv8tion.jda.api.utils.cache.CacheView CacheView} of
975922 * all cached {@link net.dv8tion.jda.api.managers.AudioManager AudioManagers} created for this JDA instance.
@@ -1170,25 +1117,25 @@ default List<User> getUsersByName(@Nonnull String name, boolean ignoreCase)
11701117 * @param users
11711118 * The users which all the returned {@link Guild Guilds} must contain.
11721119 *
1173- * @return Immutable list of all {@link Guild Guild} instances which have all {@link net.dv8tion.jda.api.entities.User Users} in them.
1120+ * @return Immutable list of all {@link Guild Guild} instances which have all {@link net.dv8tion.jda.api.entities.UserSnowflake Users} in them.
11741121 *
11751122 * @see Guild#isMember(UserSnowflake)
11761123 */
11771124 @ Nonnull
11781125 @ Unmodifiable
1179- List <Guild > getMutualGuilds (@ Nonnull User ... users );
1126+ List <Guild > getMutualGuilds (@ Nonnull UserSnowflake ... users );
11801127
11811128 /**
11821129 * Gets all {@link Guild Guilds} that contain all given users as their members.
11831130 *
11841131 * @param users
11851132 * The users which all the returned {@link Guild Guilds} must contain.
11861133 *
1187- * @return Immutable list of all {@link Guild Guild} instances which have all {@link net.dv8tion.jda.api.entities.User Users} in them.
1134+ * @return Immutable list of all {@link Guild Guild} instances which have all {@link net.dv8tion.jda.api.entities.UserSnowflake Users} in them.
11881135 */
11891136 @ Nonnull
11901137 @ Unmodifiable
1191- List <Guild > getMutualGuilds (@ Nonnull Collection <User > users );
1138+ List <Guild > getMutualGuilds (@ Nonnull Collection <? extends UserSnowflake > users );
11921139
11931140 /**
11941141 * Attempts to retrieve a {@link net.dv8tion.jda.api.entities.User User} object based on the provided id.
0 commit comments