Skip to content

Commit

Permalink
Deprecate GuildUpdateBannerEvent#getNewBannerIdUrl (#1217)
Browse files Browse the repository at this point in the history
  • Loading branch information
averen committed Mar 14, 2020
1 parent f1becef commit 3e2e550
Showing 1 changed file with 19 additions and 1 deletion.
Expand Up @@ -16,6 +16,8 @@

package net.dv8tion.jda.api.events.guild.update;

import net.dv8tion.jda.annotations.DeprecatedSince;
import net.dv8tion.jda.annotations.ReplaceWith;
import net.dv8tion.jda.api.JDA;
import net.dv8tion.jda.api.entities.Guild;

Expand Down Expand Up @@ -55,11 +57,27 @@ public String getNewBannerId()
* @return The new banner url, or null if the banner was removed
*/
@Nullable
public String getNewBannerIdUrl()
public String getNewBannerUrl()
{
return next == null ? null : String.format(Guild.BANNER_URL, guild.getId(), next);
}

/**
* The new banner url
*
* @return The new banner url, or null if the banner was removed
*
* @deprecated This will be replaced by {@link #getNewBannerUrl()}
*/
@Nullable
@Deprecated
@DeprecatedSince("4.2.0")
@ReplaceWith("getNewBannerUrl()")
public String getNewBannerIdUrl()
{
return getNewBannerUrl();
}

/**
* The old banner id
*
Expand Down

0 comments on commit 3e2e550

Please sign in to comment.