Skip to content

Commit

Permalink
Update outdated links (#2479)
Browse files Browse the repository at this point in the history
MinnDevelopment authored Jun 19, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 19bbd66 commit d2f1daf
Showing 13 changed files with 64 additions and 65 deletions.
53 changes: 28 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
@@ -4,25 +4,28 @@
[discord-invite]: https://discord.gg/0hMr4ce0tIl3SLv5
[migration]: https://jda.wiki/introduction/migration-v3-v4/
[jenkins]: https://ci.dv8tion.net/job/JDA5
[license]: https://github.com/DV8FromTheWorld/JDA/tree/master/LICENSE
[license]: https://github.com/discord-jda/JDA/tree/master/LICENSE
[faq]: https://jda.wiki/introduction/faq/
[docs]: https://docs.jda.wiki/index.html
[troubleshooting]: https://jda.wiki/using-jda/troubleshooting/
[discord-shield]: https://discord.com/api/guilds/125227483518861312/widget.png
[faq-shield]: https://img.shields.io/badge/Wiki-FAQ-blue.svg
[docs-shield]: https://img.shields.io/badge/Wiki-Docs-blue.svg
[troubleshooting-shield]: https://img.shields.io/badge/Wiki-Troubleshooting-darkgreen.svg
[jenkins-shield]: https://img.shields.io/badge/Download-Jenkins-purple.svg
[license-shield]: https://img.shields.io/badge/License-Apache%202.0-white.svg
[migration-shield]: https://img.shields.io/badge/Wiki-Migrating%20from%20V3-darkgreen.svg

<img align="right" src="https://github.com/DV8FromTheWorld/JDA/blob/assets/assets/readme/logo.png?raw=true" height="200" width="200">
<img align="right" src="https://github.com/discord-jda/JDA/blob/assets/assets/readme/logo.png?raw=true" height="200" width="200">

[ ![maven-central][] ][download]
[ ![jitpack][] ](https://jitpack.io/#DV8FromtheWorld/JDA)
[ ![jitpack][] ](https://jitpack.io/#discord-jda/JDA)
[ ![jenkins-shield][] ][jenkins]
[ ![license-shield][] ][license]

[ ![discord-shield][] ][discord-invite]
[ ![faq-shield] ][faq]
[ ![docs-shield] ][docs]
[ ![troubleshooting-shield] ][troubleshooting]
[ ![migration-shield][] ][migration]

@@ -95,8 +98,8 @@ public static void main(String[] args) {
}
```

> See [JDABuilder](https://ci.dv8tion.net/job/JDA5/javadoc/net/dv8tion/jda/api/JDABuilder.html)
and [DefaultShardManagerBuilder](https://ci.dv8tion.net/job/JDA5/javadoc/net/dv8tion/jda/api/sharding/DefaultShardManagerBuilder.html)
> See [JDABuilder](https://docs.jda.wiki/net/dv8tion/jda/api/JDABuilder.html)
and [DefaultShardManagerBuilder](https://docs.jda.wiki/net/dv8tion/jda/api/sharding/DefaultShardManagerBuilder.html)

You can configure the memory usage by changing enabled `CacheFlags` on the `JDABuilder`.
Additionally, you can change the handling of member/user cache by setting either a `ChunkingFilter`, disabling **intents**, or changing the **member cache policy**.
@@ -272,22 +275,22 @@ public class Bot extends ListenerAdapter

### RestAction

Through [RestAction](https://ci.dv8tion.net/job/JDA5/javadoc/net/dv8tion/jda/api/requests/RestAction.html) we provide request handling with
Through [RestAction](https://docs.jda.wiki/net/dv8tion/jda/api/requests/RestAction.html) we provide request handling with

- [callbacks](https://ci.dv8tion.net/job/JDA5/javadoc/net/dv8tion/jda/api/requests/RestAction.html#queue%28java.util.function.Consumer%29)
- [promises](https://ci.dv8tion.net/job/JDA5/javadoc/net/dv8tion/jda/api/requests/RestAction.html#submit%28%29)
- and [sync](https://ci.dv8tion.net/job/JDA5/javadoc/net/dv8tion/jda/api/requests/RestAction.html#complete%28%29)
- [callbacks](https://docs.jda.wiki/net/dv8tion/jda/api/requests/RestAction.html#queue%28java.util.function.Consumer%29)
- [promises](https://docs.jda.wiki/net/dv8tion/jda/api/requests/RestAction.html#submit%28%29)
- and [sync](https://docs.jda.wiki/net/dv8tion/jda/api/requests/RestAction.html#complete%28%29)

and it is up to the user to decide which pattern to utilize.
It can be combined with reactive libraries such as [reactor-core](https://github.com/reactor/reactor-core) due to being lazy.

The RestAction interface also supports a number of operators to avoid callback hell:

- [`map`](https://ci.dv8tion.net/job/JDA5/javadoc/net/dv8tion/jda/api/requests/RestAction.html#map%28java.util.function.Function%29)
- [`map`](https://docs.jda.wiki/net/dv8tion/jda/api/requests/RestAction.html#map%28java.util.function.Function%29)
Convert the result of the `RestAction` to a different value
- [`flatMap`](https://ci.dv8tion.net/job/JDA5/javadoc/net/dv8tion/jda/api/requests/RestAction.html#flatMap%28java.util.function.Function%29)
- [`flatMap`](https://docs.jda.wiki/net/dv8tion/jda/api/requests/RestAction.html#flatMap%28java.util.function.Function%29)
Chain another `RestAction` on the result
- [`delay`](https://ci.dv8tion.net/job/JDA5/javadoc/net/dv8tion/jda/api/requests/RestAction.html#delay%28java.time.Duration%29)
- [`delay`](https://docs.jda.wiki/net/dv8tion/jda/api/requests/RestAction.html#delay%28java.time.Duration%29)
Delay the element of the previous step

**Example**:
@@ -304,7 +307,7 @@ public RestAction<Void> selfDestruct(MessageChannel channel, String content) {

### More Examples

We provide a small set of Examples in the [Example Directory](https://github.com/DV8FromTheWorld/JDA/tree/master/src/examples/java).
We provide a small set of Examples in the [Example Directory](https://github.com/discord-jda/JDA/tree/master/src/examples/java).

<!--
TODO: Find good examples
@@ -324,7 +327,7 @@ To use sharding in JDA you will need to use `JDABuilder.useSharding(int shardId,
has the ID 0. The **shardTotal** is the total amount of shards (not 0-based) which can be seen similar to the length of an array, the last shard has the ID of
`shardTotal - 1`.

The [`SessionController`](https://ci.dv8tion.net/job/JDA5/javadoc/net/dv8tion/jda/api/utils/SessionController.html) is a tool of the JDABuilder
The [`SessionController`](https://docs.jda.wiki/net/dv8tion/jda/api/utils/SessionController.html) is a tool of the JDABuilder
that allows to control state and behaviour between shards (sessions). When using multiple builders to build shards you have to create one instance
of this controller and add the same instance to each builder: `builder.setSessionController(controller)`

@@ -437,11 +440,11 @@ public class UserLogger extends ListenerAdapter
## Download

[ ![maven-central][] ](https://mvnrepository.com/artifact/net.dv8tion/JDA/latest)
[ ![jitpack][] ](https://jitpack.io/#DV8FromtheWorld/JDA)
[ ![jitpack][] ](https://jitpack.io/#discord-jda/JDA)

Latest Release: [GitHub Release](https://github.com/DV8FromTheWorld/JDA/releases/latest) <br>
Latest Release: [GitHub Release](https://github.com/discord-jda/JDA/releases/latest) <br>

Be sure to replace the **VERSION** key below with the one of the versions shown above! For snapshots, please use the instructions provided by [JitPack](https://jitpack.io/#DV8FromTheWorld/JDA).
Be sure to replace the **VERSION** key below with the one of the versions shown above! For snapshots, please use the instructions provided by [JitPack](https://jitpack.io/#discord-jda/JDA).

**Maven**
```xml
@@ -520,24 +523,24 @@ There is a guide for logback-classic available in our wiki: [Logging Setup](http

## Documentation

Docs can be found on the [Jenkins][jenkins] or directly [here](https://ci.dv8tion.net/job/JDA5/javadoc/)
Docs can be found on the [Jenkins][jenkins] or directly [here](https://docs.jda.wiki/)
<br>A simple Wiki can also be found at [jda.wiki](https://jda.wiki/)

### Annotations

We use a number of annotations to indicate future plans for implemented functionality such as new features of
the Discord API.

- [Incubating](https://github.com/DV8FromTheWorld/JDA/blob/master/src/main/java/net/dv8tion/jda/annotations/Incubating.java)
- [Incubating](https://github.com/discord-jda/JDA/blob/master/src/main/java/net/dv8tion/jda/annotations/Incubating.java)
<br>This annotation is used to indicate that functionality may change in the future. Often used when a new feature is added.
- [ReplaceWith](https://github.com/DV8FromTheWorld/JDA/blob/master/src/main/java/net/dv8tion/jda/annotations/ReplaceWith.java)
- [ReplaceWith](https://github.com/discord-jda/JDA/blob/master/src/main/java/net/dv8tion/jda/annotations/ReplaceWith.java)
<br>Paired with `@Deprecated` this is used to inform you how the new code-fragment is supposed to look once the hereby annotated functionality is removed.
- [ForRemoval](https://github.com/DV8FromTheWorld/JDA/blob/master/src/main/java/net/dv8tion/jda/annotations/ForRemoval.java)
- [ForRemoval](https://github.com/discord-jda/JDA/blob/master/src/main/java/net/dv8tion/jda/annotations/ForRemoval.java)
<br>Paired with `@Deprecated` this indicates that we plan to entirely remove the hereby annotated functionality in the future.
- [DeprecatedSince](https://github.com/DV8FromTheWorld/JDA/blob/master/src/main/java/net/dv8tion/jda/annotations/DeprecatedSince.java)
- [DeprecatedSince](https://github.com/discord-jda/JDA/blob/master/src/main/java/net/dv8tion/jda/annotations/DeprecatedSince.java)
<br>Paired with `@Deprecated` this specifies when a feature was marked as deprecated.

[Sources](https://github.com/DV8FromTheWorld/JDA/tree/master/src/main/java/net/dv8tion/jda/annotations)
[Sources](https://github.com/discord-jda/JDA/tree/master/src/main/java/net/dv8tion/jda/annotations)

## Getting Help

@@ -624,7 +627,7 @@ If you want to contribute to JDA, make sure to base your branch off of our **dev
and create your PR into that **same** branch. **We will be rejecting any PRs between branches or into release branches!**
It is very possible that your change might already be in development or you missed something.

More information can be found at the wiki page [Contributing](https://github.com/DV8FromTheWorld/JDA/wiki/5\)-Contributing)
More information can be found at the wiki page [Contributing](https://github.com/discord-jda/JDA/wiki/5\)-Contributing)

### Deprecation Policy

@@ -643,7 +646,7 @@ For instance, when updating from version 3.3.0 to version 3.5.1 you should do th
- Update to `3.5.1` and check for deprecation, replace

The `RR` in version `3.4.RR` should be replaced by the latest version that was published for `3.4`, you can find out which the latest
version was by looking at the [release page](https://github.com/DV8FromTheWorld/JDA/releases)
version was by looking at the [release page](https://github.com/discord-jda/JDA/releases)

## Dependencies:

8 changes: 4 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -360,11 +360,11 @@ fun generatePom(pom: Pom) {
pom.packaging = "jar"
pom.name.set(project.name)
pom.description.set("Java wrapper for the popular chat & VOIP service: Discord https://discord.com")
pom.url.set("https://github.com/DV8FromTheWorld/JDA")
pom.url.set("https://github.com/discord-jda/JDA")
pom.scm {
url.set("https://github.com/DV8FromTheWorld/JDA")
connection.set("scm:git:git://github.com/DV8FromTheWorld/JDA")
developerConnection.set("scm:git:ssh:git@github.com:DV8FromTheWorld/JDA")
url.set("https://github.com/discord-jda/JDA")
connection.set("scm:git:git://github.com/discord-jda/JDA")
developerConnection.set("scm:git:ssh:git@github.com:discord-jda/JDA")
}
pom.licenses {
license {
3 changes: 1 addition & 2 deletions src/examples/java/MessageLoggerExample.java
Original file line number Diff line number Diff line change
@@ -28,7 +28,6 @@
import net.dv8tion.jda.api.requests.GatewayIntent;

import javax.annotation.Nonnull;
import javax.security.auth.login.LoginException;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
@@ -67,7 +66,7 @@ public static void main(String[] args) throws IOException
// When an intent is enabled, you will receive events and cache updates related to that intent.
// For more information:
//
// - The documentation for GatewayIntent: https://ci.dv8tion.net/job/JDA/javadoc/net/dv8tion/jda/api/requests/GatewayIntent.html
// - The documentation for GatewayIntent: https://docs.jda.wiki/net/dv8tion/jda/api/requests/GatewayIntent.html
// - The wiki page for intents and caching: https://jda.wiki/using-jda/gateway-intents-and-member-cache-policy/

EnumSet<GatewayIntent> intents = EnumSet.of(
38 changes: 19 additions & 19 deletions src/main/java/net/dv8tion/jda/api/EmbedBuilder.java
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@
* Builder system used to build {@link net.dv8tion.jda.api.entities.MessageEmbed MessageEmbeds}.
*
* <br>A visual breakdown of an Embed and how it relates to this class is available at
* <a href="https://raw.githubusercontent.com/DV8FromTheWorld/JDA/assets/assets/docs/embeds/01-Overview.png" target="_blank">Embed Overview</a>.
* <a href="https://raw.githubusercontent.com/discord-jda/JDA/assets/assets/docs/embeds/01-Overview.png" target="_blank">Embed Overview</a>.
*
* @since 3.0
* @author John A. Grosh
@@ -304,7 +304,7 @@ public boolean isValidLength()
* Sets the Title of the embed.
* <br>Overload for {@link #setTitle(String, String)} without URL parameter.
*
* <p><b><a href="https://raw.githubusercontent.com/DV8FromTheWorld/JDA/assets/assets/docs/embeds/04-setTitle.png">Example</a></b>
* <p><b><a href="https://raw.githubusercontent.com/discord-jda/JDA/assets/assets/docs/embeds/04-setTitle.png">Example</a></b>
*
* @param title
* the title of the embed
@@ -329,7 +329,7 @@ public EmbedBuilder setTitle(@Nullable String title)
* <br>You can provide {@code null} as url if no url should be used.
* <br>If you want to set a URL without a title, use {@link #setUrl(String)} instead.
*
* <p><b><a href="https://raw.githubusercontent.com/DV8FromTheWorld/JDA/assets/assets/docs/embeds/04-setTitle.png">Example</a></b>
* <p><b><a href="https://raw.githubusercontent.com/discord-jda/JDA/assets/assets/docs/embeds/04-setTitle.png">Example</a></b>
*
* @param title
* the title of the embed
@@ -414,7 +414,7 @@ public StringBuilder getDescriptionBuilder()
/**
* Sets the Description of the embed. This is where the main chunk of text for an embed is typically placed.
*
* <p><b><a href="https://raw.githubusercontent.com/DV8FromTheWorld/JDA/assets/assets/docs/embeds/05-setDescription.png">Example</a></b>
* <p><b><a href="https://raw.githubusercontent.com/discord-jda/JDA/assets/assets/docs/embeds/05-setDescription.png">Example</a></b>
*
* @param description
* the description of the embed, {@code null} to reset
@@ -437,7 +437,7 @@ public final EmbedBuilder setDescription(@Nullable CharSequence description)
/**
* Appends to the description of the embed. This is where the main chunk of text for an embed is typically placed.
*
* <p><b><a href="https://raw.githubusercontent.com/DV8FromTheWorld/JDA/assets/assets/docs/embeds/05-setDescription.png">Example</a></b>
* <p><b><a href="https://raw.githubusercontent.com/discord-jda/JDA/assets/assets/docs/embeds/05-setDescription.png">Example</a></b>
*
* @param description
* the string to append to the description of the embed
@@ -464,7 +464,7 @@ public EmbedBuilder appendDescription(@Nonnull CharSequence description)
/**
* Sets the Timestamp of the embed.
*
* <p><b><a href="https://raw.githubusercontent.com/DV8FromTheWorld/JDA/assets/assets/docs/embeds/13-setTimestamp.png">Example</a></b>
* <p><b><a href="https://raw.githubusercontent.com/discord-jda/JDA/assets/assets/docs/embeds/13-setTimestamp.png">Example</a></b>
*
* <p><b>Hint:</b> You can get the current time using {@link java.time.Instant#now() Instant.now()} or convert time from a
* millisecond representation by using {@link java.time.Instant#ofEpochMilli(long) Instant.ofEpochMilli(long)};
@@ -484,7 +484,7 @@ public EmbedBuilder setTimestamp(@Nullable TemporalAccessor temporal)
/**
* Sets the Color of the embed.
*
* <p><b><a href="https://raw.githubusercontent.com/DV8FromTheWorld/JDA/assets/assets/docs/embeds/02-setColor.png" target="_blank">Example</a></b>
* <p><b><a href="https://raw.githubusercontent.com/discord-jda/JDA/assets/assets/docs/embeds/02-setColor.png" target="_blank">Example</a></b>
*
* @param color
* The {@link java.awt.Color Color} of the embed
@@ -504,7 +504,7 @@ public EmbedBuilder setColor(@Nullable Color color)
/**
* Sets the raw RGB color value for the embed.
*
* <p><b><a href="https://raw.githubusercontent.com/DV8FromTheWorld/JDA/assets/assets/docs/embeds/02-setColor.png" target="_blank">Example</a></b>
* <p><b><a href="https://raw.githubusercontent.com/discord-jda/JDA/assets/assets/docs/embeds/02-setColor.png" target="_blank">Example</a></b>
*
* @param color
* The raw rgb value, or {@link Role#DEFAULT_COLOR_RAW} to use no color
@@ -523,7 +523,7 @@ public EmbedBuilder setColor(int color)
/**
* Sets the Thumbnail of the embed.
*
* <p><b><a href="https://raw.githubusercontent.com/DV8FromTheWorld/JDA/assets/assets/docs/embeds/06-setThumbnail.png">Example</a></b>
* <p><b><a href="https://raw.githubusercontent.com/discord-jda/JDA/assets/assets/docs/embeds/06-setThumbnail.png">Example</a></b>
*
* <p><b>Uploading images with Embeds</b>
* <br>When uploading an <u>image</u>
@@ -570,7 +570,7 @@ public EmbedBuilder setThumbnail(@Nullable String url)
/**
* Sets the Image of the embed.
*
* <p><b><a href="https://raw.githubusercontent.com/DV8FromTheWorld/JDA/assets/assets/docs/embeds/11-setImage.png">Example</a></b>
* <p><b><a href="https://raw.githubusercontent.com/discord-jda/JDA/assets/assets/docs/embeds/11-setImage.png">Example</a></b>
*
* <p><b>Uploading images with Embeds</b>
* <br>When uploading an <u>image</u>
@@ -621,7 +621,7 @@ public EmbedBuilder setImage(@Nullable String url)
* image beside it along with the author's name being made clickable by way of providing a url.
* This convenience method just sets the name.
*
* <p><b><a href="https://raw.githubusercontent.com/DV8FromTheWorld/JDA/assets/assets/docs/embeds/03-setAuthor.png">Example</a></b>
* <p><b><a href="https://raw.githubusercontent.com/discord-jda/JDA/assets/assets/docs/embeds/03-setAuthor.png">Example</a></b>
*
* @param name
* the name of the author of the embed. If this is not set, the author will not appear in the embed
@@ -643,7 +643,7 @@ public EmbedBuilder setAuthor(@Nullable String name)
* image beside it along with the author's name being made clickable by way of providing a url.
* This convenience method just sets the name and the url.
*
* <p><b><a href="https://raw.githubusercontent.com/DV8FromTheWorld/JDA/assets/assets/docs/embeds/03-setAuthor.png">Example</a></b>
* <p><b><a href="https://raw.githubusercontent.com/discord-jda/JDA/assets/assets/docs/embeds/03-setAuthor.png">Example</a></b>
*
* @param name
* the name of the author of the embed. If this is not set, the author will not appear in the embed
@@ -671,7 +671,7 @@ public EmbedBuilder setAuthor(@Nullable String name, @Nullable String url)
* Sets the Author of the embed. The author appears in the top left of the embed and can have a small
* image beside it along with the author's name being made clickable by way of providing a url.
*
* <p><b><a href="https://raw.githubusercontent.com/DV8FromTheWorld/JDA/assets/assets/docs/embeds/03-setAuthor.png">Example</a></b>
* <p><b><a href="https://raw.githubusercontent.com/discord-jda/JDA/assets/assets/docs/embeds/03-setAuthor.png">Example</a></b>
*
* <p><b>Uploading images with Embeds</b>
* <br>When uploading an <u>image</u>
@@ -731,7 +731,7 @@ public EmbedBuilder setAuthor(@Nullable String name, @Nullable String url, @Null
/**
* Sets the Footer of the embed without icon.
*
* <p><b><a href="https://raw.githubusercontent.com/DV8FromTheWorld/JDA/assets/assets/docs/embeds/12-setFooter.png">Example</a></b>
* <p><b><a href="https://raw.githubusercontent.com/discord-jda/JDA/assets/assets/docs/embeds/12-setFooter.png">Example</a></b>
*
* @param text
* the text of the footer of the embed. If this is not set or set to null, the footer will not appear in the embed.
@@ -751,7 +751,7 @@ public EmbedBuilder setFooter(@Nullable String text)
/**
* Sets the Footer of the embed.
*
* <p><b><a href="https://raw.githubusercontent.com/DV8FromTheWorld/JDA/assets/assets/docs/embeds/12-setFooter.png">Example</a></b>
* <p><b><a href="https://raw.githubusercontent.com/discord-jda/JDA/assets/assets/docs/embeds/12-setFooter.png">Example</a></b>
*
* <p><b>Uploading images with Embeds</b>
* <br>When uploading an <u>image</u>
@@ -823,8 +823,8 @@ public EmbedBuilder addField(@Nullable MessageEmbed.Field field)
* <p>Note: If a blank string is provided to either {@code name} or {@code value}, the blank string is replaced
* with {@link net.dv8tion.jda.api.EmbedBuilder#ZERO_WIDTH_SPACE}.
*
* <p><b><a href="https://raw.githubusercontent.com/DV8FromTheWorld/JDA/assets/assets/docs/embeds/07-addField.png">Example of Inline</a></b>
* <p><b><a href="https://raw.githubusercontent.com/DV8FromTheWorld/JDA/assets/assets/docs/embeds/08-addField.png">Example if Non-inline</a></b>
* <p><b><a href="https://raw.githubusercontent.com/discord-jda/JDA/assets/assets/docs/embeds/07-addField.png">Example of Inline</a></b>
* <p><b><a href="https://raw.githubusercontent.com/discord-jda/JDA/assets/assets/docs/embeds/08-addField.png">Example if Non-inline</a></b>
*
* @param name
* the name of the Field, displayed in bold above the {@code value}.
@@ -856,8 +856,8 @@ public EmbedBuilder addField(@Nonnull String name, @Nonnull String value, boolea
/**
* Adds a blank (empty) Field to the embed.
*
* <p><b><a href="https://raw.githubusercontent.com/DV8FromTheWorld/JDA/assets/assets/docs/embeds/07-addField.png">Example of Inline</a></b>
* <p><b><a href="https://raw.githubusercontent.com/DV8FromTheWorld/JDA/assets/assets/docs/embeds/08-addField.png">Example if Non-inline</a></b>
* <p><b><a href="https://raw.githubusercontent.com/discord-jda/JDA/assets/assets/docs/embeds/07-addField.png">Example of Inline</a></b>
* <p><b><a href="https://raw.githubusercontent.com/discord-jda/JDA/assets/assets/docs/embeds/08-addField.png">Example if Non-inline</a></b>
*
* @param inline
* whether or not this field should display inline
2 changes: 1 addition & 1 deletion src/main/java/net/dv8tion/jda/api/JDAInfo.java
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ public class JDAInfo
public static final int DISCORD_GATEWAY_VERSION = 10;
public static final int DISCORD_REST_VERSION = 10;
public static final int AUDIO_GATEWAY_VERSION = 4;
public static final String GITHUB = "https://github.com/DV8FromTheWorld/JDA";
public static final String GITHUB = "https://github.com/discord-jda/JDA";
public static final String VERSION_MAJOR = "@versionMajor@";
public static final String VERSION_MINOR = "@versionMinor@";
public static final String VERSION_REVISION = "@versionRevision@";
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@
/**
* Represents an embed displayed by Discord.
* <br>A visual representation of an Embed can be found at:
* <a href="https://raw.githubusercontent.com/DV8FromTheWorld/JDA/assets/assets/docs/embeds/01-Overview.png" target="_blank">Embed Overview</a>
* <a href="https://raw.githubusercontent.com/discord-jda/JDA/assets/assets/docs/embeds/01-Overview.png" target="_blank">Embed Overview</a>
* <br>This class has many possibilities for null values, so be careful!
*
* @see EmbedBuilder
Original file line number Diff line number Diff line change
@@ -85,7 +85,7 @@
* </code></pre>
*
* <p>
* You can look at a complete localization example <a href="https://github.com/DV8FromTheWorld/JDA/blob/master/src/examples/java/LocalizationExample.java" target="_blank">here</a>
* You can look at a complete localization example <a href="https://github.com/discord-jda/JDA/blob/master/src/examples/java/LocalizationExample.java" target="_blank">here</a>
*
* @see ResourceBundleLocalizationFunction
* @see net.dv8tion.jda.api.interactions.commands.build.CommandData#setLocalizationFunction(LocalizationFunction)
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@
* This implementation supports Java's {@link ResourceBundle} to be used as a localization source
*
* <p>
* You can look at a complete localization example <a href="https://github.com/DV8FromTheWorld/JDA/blob/master/src/examples/java/LocalizationExample.java" target="_blank">here</a>
* You can look at a complete localization example <a href="https://github.com/discord-jda/JDA/blob/master/src/examples/java/LocalizationExample.java" target="_blank">here</a>
*/
public class ResourceBundleLocalizationFunction implements LocalizationFunction
{
Original file line number Diff line number Diff line change
@@ -51,9 +51,9 @@
* } else if (event.getName().equals("info")) {
* event.reply("Click the buttons for more info")
* .addActionRow( // link buttons don't send events, they just open a link in the browser when clicked
* Button.link("https://github.com/DV8FromTheWorld/JDA", "GitHub")
* Button.link("https://github.com/discord-jda/JDA", "GitHub")
* .withEmoji(Emoji.fromMarkdown("<:github:849286315580719104>")), // Link Button with label and emoji
* Button.link("https://ci.dv8tion.net/job/JDA/javadoc/", "Javadocs")) // Link Button with only a label
* Button.link("https://docs.jda.wiki/", "Javadocs")) // Link Button with only a label
* .queue();
* }
* }
@@ -68,7 +68,7 @@
*
* To see what each button looks like here is an example cheatsheet:
* <br>
* <img alt="ButtonExample" src="https://raw.githubusercontent.com/DV8FromTheWorld/JDA/52377f69d1f3bfba909c51a449ac6b258f606956/assets/wiki/interactions/ButtonExamples.png">
* <img alt="ButtonExample" src="https://raw.githubusercontent.com/discord-jda/JDA/52377f69d1f3bfba909c51a449ac6b258f606956/assets/wiki/interactions/ButtonExamples.png">
*
* @see ReplyCallbackAction#addActionRow(ItemComponent...)
* @see ReplyCallbackAction#addComponents(LayoutComponent...)
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@
*
* <p>To see what each button looks like here is an example cheatsheet:
* <br>
* <img alt="ButtonExample" src="https://raw.githubusercontent.com/DV8FromTheWorld/JDA/52377f69d1f3bfba909c51a449ac6b258f606956/assets/wiki/interactions/ButtonExamples.png">
* <img alt="ButtonExample" src="https://raw.githubusercontent.com/discord-jda/JDA/52377f69d1f3bfba909c51a449ac6b258f606956/assets/wiki/interactions/ButtonExamples.png">
*/
public enum ButtonStyle
{
Original file line number Diff line number Diff line change
@@ -29,11 +29,8 @@
*
* <p><b>Example</b>
* <pre>{@code
* manager.setName("Minn")
* .setAvatar(null)
* .queue();
* manager.reset(AccountManager.NAME | AccountManager.AVATAR)
* .setName("DV8FromTheWorld")
* manager.setAvatar(null).queue();
* manager.reset(AccountManager.AVATAR)
* .setAvatar(icon)
* .queue();
* }</pre>
2 changes: 1 addition & 1 deletion src/main/java/net/dv8tion/jda/api/requests/RestAction.java
Original file line number Diff line number Diff line change
@@ -144,7 +144,7 @@
* which can be avoided by using callbacks over blocking operations:
* <br>{@link #queue(Consumer)} {@literal >} {@link #complete()}
*
* <p>There is a dedicated <a href="https://github.com/DV8FromTheWorld/JDA/wiki/7)-Using-RestAction" target="_blank">wiki page</a>
* <p>There is a dedicated <a href="https://github.com/discord-jda/JDA/wiki/7)-Using-RestAction" target="_blank">wiki page</a>
* for RestActions that can be useful for learning.
*
* @param <T>
Original file line number Diff line number Diff line change
@@ -284,7 +284,7 @@ protected void updateUserSSRC(int ssrc, long userId)
{
//Different User already existed with this ssrc. What should we do? Just replace? Probably should nuke the old opusDecoder.
//Log for now and see if any user report the error.
LOG.error("Yeah.. So.. JDA received a UserSSRC update for an ssrc that already had a User set. Inform DV8FromTheWorld.\nChannelId: {} SSRC: {} oldId: {} newId: {}",
LOG.error("Yeah.. So.. JDA received a UserSSRC update for an ssrc that already had a User set. Inform devs.\nChannelId: {} SSRC: {} oldId: {} newId: {}",
channel.getId(), ssrc, previousId, userId);
}
}

0 comments on commit d2f1daf

Please sign in to comment.