Skip to content

Commit 78994a1

Browse files
committed
Event docs
1 parent 2357647 commit 78994a1

10 files changed

+72
-26
lines changed

src/main/java/net/dv8tion/jda/api/events/channel/VoiceChannelEffectSendEvent.java

+4
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,15 @@
2020
import net.dv8tion.jda.api.entities.channel.Channel;
2121
import net.dv8tion.jda.api.entities.channel.VoiceChannelEffect;
2222
import net.dv8tion.jda.api.entities.channel.concrete.VoiceChannel;
23+
import net.dv8tion.jda.api.requests.GatewayIntent;
2324

2425
import javax.annotation.Nonnull;
2526

2627
/**
2728
* Indicates that a {@link VoiceChannelEffect voice channel effect} was sent in a {@link VoiceChannel}.
29+
*
30+
* <p><b>Requirements</b><br>
31+
* This event requires {@link GatewayIntent#GUILD_VOICE_STATES} to be enabled.
2832
*/
2933
public class VoiceChannelEffectSendEvent extends GenericChannelEvent
3034
{

src/main/java/net/dv8tion/jda/api/events/soundboard/GenericSoundboardSoundEvent.java

+12
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,24 @@
1717
package net.dv8tion.jda.api.events.soundboard;
1818

1919
import net.dv8tion.jda.api.JDA;
20+
import net.dv8tion.jda.api.JDABuilder;
2021
import net.dv8tion.jda.api.entities.Guild;
2122
import net.dv8tion.jda.api.entities.SoundboardSound;
2223
import net.dv8tion.jda.api.events.Event;
24+
import net.dv8tion.jda.api.requests.GatewayIntent;
25+
import net.dv8tion.jda.api.utils.cache.CacheFlag;
2326

2427
import javax.annotation.Nonnull;
2528

29+
/**
30+
* Indicates that a {@link SoundboardSound} was created/deleted/updated.
31+
*
32+
* <p><b>Requirements</b><br>
33+
* These events require {@link CacheFlag#SOUNDBOARD_SOUNDS} to be enabled,
34+
* which requires {@link GatewayIntent#GUILD_EMOJIS_AND_STICKERS}.
35+
*
36+
* <br>{@link JDABuilder#createLight(String) createLight(String)} disables that CacheFlag by default!
37+
*/
2638
public abstract class GenericSoundboardSoundEvent extends Event
2739
{
2840
private final SoundboardSound soundboardSound;

src/main/java/net/dv8tion/jda/api/events/soundboard/SoundboardSoundCreateEvent.java

+12
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,22 @@
1717
package net.dv8tion.jda.api.events.soundboard;
1818

1919
import net.dv8tion.jda.api.JDA;
20+
import net.dv8tion.jda.api.JDABuilder;
2021
import net.dv8tion.jda.api.entities.SoundboardSound;
22+
import net.dv8tion.jda.api.requests.GatewayIntent;
23+
import net.dv8tion.jda.api.utils.cache.CacheFlag;
2124

2225
import javax.annotation.Nonnull;
2326

27+
/**
28+
* Indicates that a {@link SoundboardSound} was created.
29+
*
30+
* <p><b>Requirements</b><br>
31+
* This event require {@link CacheFlag#SOUNDBOARD_SOUNDS} to be enabled,
32+
* which requires {@link GatewayIntent#GUILD_EMOJIS_AND_STICKERS}.
33+
*
34+
* <br>{@link JDABuilder#createLight(String) createLight(String)} disables that CacheFlag by default!
35+
*/
2436
public class SoundboardSoundCreateEvent extends GenericSoundboardSoundEvent
2537
{
2638
public SoundboardSoundCreateEvent(@Nonnull JDA api, long responseNumber, @Nonnull SoundboardSound soundboardSound)

src/main/java/net/dv8tion/jda/api/events/soundboard/SoundboardSoundDeleteEvent.java

+12
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,22 @@
1717
package net.dv8tion.jda.api.events.soundboard;
1818

1919
import net.dv8tion.jda.api.JDA;
20+
import net.dv8tion.jda.api.JDABuilder;
2021
import net.dv8tion.jda.api.entities.SoundboardSound;
22+
import net.dv8tion.jda.api.requests.GatewayIntent;
23+
import net.dv8tion.jda.api.utils.cache.CacheFlag;
2124

2225
import javax.annotation.Nonnull;
2326

27+
/**
28+
* Indicates that a {@link SoundboardSound} was deleted.
29+
*
30+
* <p><b>Requirements</b><br>
31+
* This event require {@link CacheFlag#SOUNDBOARD_SOUNDS} to be enabled,
32+
* which requires {@link GatewayIntent#GUILD_EMOJIS_AND_STICKERS}.
33+
*
34+
* <br>{@link JDABuilder#createLight(String) createLight(String)} disables that CacheFlag by default!
35+
*/
2436
public class SoundboardSoundDeleteEvent extends GenericSoundboardSoundEvent
2537
{
2638
public SoundboardSoundDeleteEvent(@Nonnull JDA api, long responseNumber, @Nonnull SoundboardSound soundboardSound)

src/main/java/net/dv8tion/jda/api/events/soundboard/package-info.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919
* and {@link net.dv8tion.jda.api.events.soundboard.SoundboardSoundDeleteEvent deleted soundboard sounds}.
2020
*
2121
* <p><b>Requirements</b><br>
22-
*
23-
* <p>These events require the {@link net.dv8tion.jda.api.utils.cache.CacheFlag#SOUNDBOARD_SOUNDS SOUNDBOARD_SOUNDS} CacheFlag to be enabled, which requires
24-
* the {@link net.dv8tion.jda.api.requests.GatewayIntent#GUILD_EMOJIS_AND_STICKERS GUILD_EMOJIS_AND_STICKERS} intent.
22+
* These events require {@link net.dv8tion.jda.api.utils.cache.CacheFlag#SOUNDBOARD_SOUNDS} to be enabled,
23+
* which requires {@link net.dv8tion.jda.api.requests.GatewayIntent#GUILD_EMOJIS_AND_STICKERS}.
2524
*
2625
* <br>{@link net.dv8tion.jda.api.JDABuilder#createLight(String) createLight(String)} disables that CacheFlag by default!
2726
*/

src/main/java/net/dv8tion/jda/api/events/soundboard/update/GenericSoundboardSoundUpdateEvent.java

+7-5
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,24 @@
1717
package net.dv8tion.jda.api.events.soundboard.update;
1818

1919
import net.dv8tion.jda.api.JDA;
20+
import net.dv8tion.jda.api.JDABuilder;
2021
import net.dv8tion.jda.api.entities.SoundboardSound;
2122
import net.dv8tion.jda.api.events.UpdateEvent;
2223
import net.dv8tion.jda.api.events.soundboard.GenericSoundboardSoundEvent;
24+
import net.dv8tion.jda.api.requests.GatewayIntent;
25+
import net.dv8tion.jda.api.utils.cache.CacheFlag;
2326

2427
import javax.annotation.Nonnull;
2528
import javax.annotation.Nullable;
2629

2730
/**
28-
* Indicates that a {@link SoundboardSound soundboard sound} was updated.
31+
* Indicates that a {@link SoundboardSound} was updated.
2932
*
3033
* <p><b>Requirements</b><br>
34+
* These events require {@link CacheFlag#SOUNDBOARD_SOUNDS} to be enabled,
35+
* which requires {@link GatewayIntent#GUILD_EMOJIS_AND_STICKERS}.
3136
*
32-
* <p>These events require the {@link net.dv8tion.jda.api.utils.cache.CacheFlag#SOUNDBOARD_SOUNDS SOUNDBOARD_SOUNDS} CacheFlag to be enabled, which requires
33-
* the {@link net.dv8tion.jda.api.requests.GatewayIntent#GUILD_EMOJIS_AND_STICKERS GUILD_EMOJIS_AND_STICKERS} intent.
34-
*
35-
* <br>{@link net.dv8tion.jda.api.JDABuilder#createLight(String) createLight(String)} disables that CacheFlag by default!
37+
* <br>{@link JDABuilder#createLight(String) createLight(String)} disables that CacheFlag by default!
3638
*/
3739
public abstract class GenericSoundboardSoundUpdateEvent<T> extends GenericSoundboardSoundEvent implements UpdateEvent<SoundboardSound, T>
3840
{

src/main/java/net/dv8tion/jda/api/events/soundboard/update/SoundboardSoundUpdateEmojiEvent.java

+7-5
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,25 @@
1717
package net.dv8tion.jda.api.events.soundboard.update;
1818

1919
import net.dv8tion.jda.api.JDA;
20+
import net.dv8tion.jda.api.JDABuilder;
2021
import net.dv8tion.jda.api.entities.SoundboardSound;
2122
import net.dv8tion.jda.api.entities.emoji.EmojiUnion;
23+
import net.dv8tion.jda.api.requests.GatewayIntent;
24+
import net.dv8tion.jda.api.utils.cache.CacheFlag;
2225

2326
import javax.annotation.Nonnull;
2427
import javax.annotation.Nullable;
2528

2629
/**
2730
* Indicates that the emoji of a {@link SoundboardSound soundboard sound} changed.
2831
*
29-
* <p>Can be used to retrieve the old emoji
32+
* <p>Can be used to retrieve the old emoji.
3033
*
3134
* <p><b>Requirements</b><br>
35+
* This event require {@link CacheFlag#SOUNDBOARD_SOUNDS} to be enabled,
36+
* which requires {@link GatewayIntent#GUILD_EMOJIS_AND_STICKERS}.
3237
*
33-
* <p>This event requires the {@link net.dv8tion.jda.api.utils.cache.CacheFlag#SOUNDBOARD_SOUNDS SOUNDBOARD_SOUNDS} CacheFlag to be enabled, which requires
34-
* the {@link net.dv8tion.jda.api.requests.GatewayIntent#GUILD_EMOJIS_AND_STICKERS GUILD_EMOJIS_AND_STICKERS} intent.
35-
*
36-
* <br>{@link net.dv8tion.jda.api.JDABuilder#createLight(String) createLight(String)} disables that CacheFlag by default!
38+
* <br>{@link JDABuilder#createLight(String) createLight(String)} disables that CacheFlag by default!
3739
*
3840
* <p>Identifier: {@value IDENTIFIER}
3941
*/

src/main/java/net/dv8tion/jda/api/events/soundboard/update/SoundboardSoundUpdateNameEvent.java

+7-5
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,23 @@
1717
package net.dv8tion.jda.api.events.soundboard.update;
1818

1919
import net.dv8tion.jda.api.JDA;
20+
import net.dv8tion.jda.api.JDABuilder;
2021
import net.dv8tion.jda.api.entities.SoundboardSound;
22+
import net.dv8tion.jda.api.requests.GatewayIntent;
23+
import net.dv8tion.jda.api.utils.cache.CacheFlag;
2124

2225
import javax.annotation.Nonnull;
2326

2427
/**
2528
* Indicates that the name of a {@link SoundboardSound soundboard sound} changed.
2629
*
27-
* <p>Can be used to retrieve the old name
30+
* <p>Can be used to retrieve the old name.
2831
*
2932
* <p><b>Requirements</b><br>
33+
* This event require {@link CacheFlag#SOUNDBOARD_SOUNDS} to be enabled,
34+
* which requires {@link GatewayIntent#GUILD_EMOJIS_AND_STICKERS}.
3035
*
31-
* <p>This event requires the {@link net.dv8tion.jda.api.utils.cache.CacheFlag#SOUNDBOARD_SOUNDS SOUNDBOARD_SOUNDS} CacheFlag to be enabled, which requires
32-
* the {@link net.dv8tion.jda.api.requests.GatewayIntent#GUILD_EMOJIS_AND_STICKERS GUILD_EMOJIS_AND_STICKERS} intent.
33-
*
34-
* <br>{@link net.dv8tion.jda.api.JDABuilder#createLight(String) createLight(String)} disables that CacheFlag by default!
36+
* <br>{@link JDABuilder#createLight(String) createLight(String)} disables that CacheFlag by default!
3537
*
3638
* <p>Identifier: {@value IDENTIFIER}
3739
*/

src/main/java/net/dv8tion/jda/api/events/soundboard/update/SoundboardSoundUpdateVolumeEvent.java

+7-5
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,23 @@
1717
package net.dv8tion.jda.api.events.soundboard.update;
1818

1919
import net.dv8tion.jda.api.JDA;
20+
import net.dv8tion.jda.api.JDABuilder;
2021
import net.dv8tion.jda.api.entities.SoundboardSound;
22+
import net.dv8tion.jda.api.requests.GatewayIntent;
23+
import net.dv8tion.jda.api.utils.cache.CacheFlag;
2124

2225
import javax.annotation.Nonnull;
2326

2427
/**
2528
* Indicates that the volume of a {@link SoundboardSound soundboard sound} changed.
2629
*
27-
* <p>Can be used to retrieve the old volume
30+
* <p>Can be used to retrieve the old volume.
2831
*
2932
* <p><b>Requirements</b><br>
33+
* This event require {@link CacheFlag#SOUNDBOARD_SOUNDS} to be enabled,
34+
* which requires {@link GatewayIntent#GUILD_EMOJIS_AND_STICKERS}.
3035
*
31-
* <p>This event requires the {@link net.dv8tion.jda.api.utils.cache.CacheFlag#SOUNDBOARD_SOUNDS SOUNDBOARD_SOUNDS} CacheFlag to be enabled, which requires
32-
* the {@link net.dv8tion.jda.api.requests.GatewayIntent#GUILD_EMOJIS_AND_STICKERS GUILD_EMOJIS_AND_STICKERS} intent.
33-
*
34-
* <br>{@link net.dv8tion.jda.api.JDABuilder#createLight(String) createLight(String)} disables that CacheFlag by default!
36+
* <br>{@link JDABuilder#createLight(String) createLight(String)} disables that CacheFlag by default!
3537
*
3638
* <p>Identifier: {@value IDENTIFIER}
3739
*/

src/main/java/net/dv8tion/jda/api/events/soundboard/update/package-info.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818
* Events that track updates for existing {@link net.dv8tion.jda.api.entities.SoundboardSound SoundboardSounds}
1919
*
2020
* <p><b>Requirements</b><br>
21-
*
22-
* <p>These events require the {@link net.dv8tion.jda.api.utils.cache.CacheFlag#SOUNDBOARD_SOUNDS SOUNDBOARD_SOUNDS} CacheFlag to be enabled, which requires
23-
* the {@link net.dv8tion.jda.api.requests.GatewayIntent#GUILD_EMOJIS_AND_STICKERS GUILD_EMOJIS_AND_STICKERS} intent.
21+
* These events require {@link net.dv8tion.jda.api.utils.cache.CacheFlag#SOUNDBOARD_SOUNDS} to be enabled,
22+
* which requires {@link net.dv8tion.jda.api.requests.GatewayIntent#GUILD_EMOJIS_AND_STICKERS}.
2423
*
2524
* <br>{@link net.dv8tion.jda.api.JDABuilder#createLight(String) createLight(String)} disables that CacheFlag by default!
2625
*/

0 commit comments

Comments
 (0)