Remove duplication
This commit is contained in:
parent
c4d81fb0e4
commit
7dcdf9dbde
@ -150,7 +150,7 @@ public class ClearChat
|
|||||||
|
|
||||||
public static Button getDismissButton()
|
public static Button getDismissButton()
|
||||||
{
|
{
|
||||||
return Button.primary("clear_dismiss", "Dismiss")
|
return Button.primary("generic_dismiss", "Dismiss")
|
||||||
.withEmoji(Emoji.fromUnicode("❌"));
|
.withEmoji(Emoji.fromUnicode("❌"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ public class UrbanDictionary
|
|||||||
|
|
||||||
public static Button getDeleteButton()
|
public static Button getDeleteButton()
|
||||||
{
|
{
|
||||||
return Button.danger("urban_delete", "Delete")
|
return Button.danger("generic_dismiss", "Delete")
|
||||||
.withEmoji(Emoji.fromFormatted("\uD83D\uDDD1️"));
|
.withEmoji(Emoji.fromFormatted("\uD83D\uDDD1️"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,13 +18,12 @@ public class ButtonInteractionListener extends ListenerAdapter
|
|||||||
// coinflip
|
// coinflip
|
||||||
case "coinflip_reflip" -> CoinFlip.buttonReFlip(event);
|
case "coinflip_reflip" -> CoinFlip.buttonReFlip(event);
|
||||||
|
|
||||||
// clearchat command
|
// generic dismiss button
|
||||||
case "clear_dismiss" -> CommandUtil.delete(event);
|
case "generic_dismiss" -> CommandUtil.delete(event);
|
||||||
|
|
||||||
// urban dictionary navigation
|
// urban dictionary navigation
|
||||||
case "urban_nextpage" -> UrbanDictionary.changePage(event, true);
|
case "urban_nextpage" -> UrbanDictionary.changePage(event, true);
|
||||||
case "urban_previouspage" -> UrbanDictionary.changePage(event, false);
|
case "urban_previouspage" -> UrbanDictionary.changePage(event, false);
|
||||||
case "urban_delete" -> CommandUtil.delete(event);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user