Java Code Examples for net.dv8tion.jda.api.entities.Guild#ExplicitContentLevel
The following examples show how to use
net.dv8tion.jda.api.entities.Guild#ExplicitContentLevel .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GuildManagerImpl.java From JDA with Apache License 2.0 | 5 votes |
@Nonnull @Override @CheckReturnValue public GuildManagerImpl setExplicitContentLevel(@Nonnull Guild.ExplicitContentLevel level) { Checks.notNull(level, "Level"); Checks.check(level != Guild.ExplicitContentLevel.UNKNOWN, "Level must not be UNKNOWN"); this.explicitContentLevel = level.getKey(); set |= EXPLICIT_CONTENT_LEVEL; return this; }
Example 2
Source File: GuildActionImpl.java From JDA with Apache License 2.0 | 5 votes |
@Nonnull @Override @CheckReturnValue public GuildActionImpl setExplicitContentLevel(Guild.ExplicitContentLevel level) { this.explicitContentLevel = level; return this; }
Example 3
Source File: GuildUpdateExplicitContentLevelEvent.java From JDA with Apache License 2.0 | 4 votes |
public GuildUpdateExplicitContentLevelEvent(@Nonnull JDA api, long responseNumber, @Nonnull Guild guild, @Nonnull Guild.ExplicitContentLevel oldLevel) { super(api, responseNumber, guild, oldLevel, guild.getExplicitContentLevel(), IDENTIFIER); }
Example 4
Source File: GuildUpdateExplicitContentLevelEvent.java From JDA with Apache License 2.0 | 4 votes |
@Nonnull @Override public Guild.ExplicitContentLevel getOldValue() { return super.getOldValue(); }
Example 5
Source File: GuildUpdateExplicitContentLevelEvent.java From JDA with Apache License 2.0 | 4 votes |
@Nonnull @Override public Guild.ExplicitContentLevel getNewValue() { return super.getNewValue(); }
Example 6
Source File: GuildManager.java From JDA with Apache License 2.0 | 2 votes |
/** * Sets the {@link net.dv8tion.jda.api.entities.Guild.ExplicitContentLevel Explicit Content Level} of this {@link net.dv8tion.jda.api.entities.Guild Guild}. * * @param level * The new MFA Level for this {@link net.dv8tion.jda.api.entities.Guild Guild} * * @throws IllegalArgumentException * If the provided level is {@code null} or UNKNOWN * * @return GuildManager for chaining convenience */ @Nonnull @CheckReturnValue GuildManager setExplicitContentLevel(@Nonnull Guild.ExplicitContentLevel level);
Example 7
Source File: GuildUpdateExplicitContentLevelEvent.java From JDA with Apache License 2.0 | 2 votes |
/** * The old {@link net.dv8tion.jda.api.entities.Guild.ExplicitContentLevel ExplicitContentLevel} for the * {@link net.dv8tion.jda.api.entities.Guild Guild} prior to this event. * * @return The old explicit content level */ @Nonnull public Guild.ExplicitContentLevel getOldLevel() { return getOldValue(); }
Example 8
Source File: GuildUpdateExplicitContentLevelEvent.java From JDA with Apache License 2.0 | 2 votes |
/** * The new {@link net.dv8tion.jda.api.entities.Guild.ExplicitContentLevel ExplicitContentLevel} for the * {@link net.dv8tion.jda.api.entities.Guild Guild} after to this event. * * @return The new explicit content level */ @Nonnull public Guild.ExplicitContentLevel getNewLevel() { return getNewValue(); }
Example 9
Source File: GuildAction.java From JDA with Apache License 2.0 | 2 votes |
/** * Sets the {@link net.dv8tion.jda.api.entities.Guild.ExplicitContentLevel ExplicitContentLevel} * for the resulting {@link net.dv8tion.jda.api.entities.Guild Guild} * * @param level * The {@link net.dv8tion.jda.api.entities.Guild.ExplicitContentLevel ExplicitContentLevel} to use * * @return The current GuildAction for chaining convenience */ @Nonnull @CheckReturnValue GuildAction setExplicitContentLevel(@Nullable Guild.ExplicitContentLevel level);