Skip to content

Commit

Permalink
Removed :loading: and added a loading gif thumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
faab007nl committed Sep 6, 2021
1 parent a34895d commit 0766fb9
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ public void onCommand(TextChannel channel, Member member, SlashCommandEvent e) {
String service = Objects.requireNonNull(e.getOption("service")).getAsString();

if(service.equalsIgnoreCase("Bot")) {
e.replyEmbeds(new TechEmbedBuilder("Restart Status Loading :loading:")
e.replyEmbeds(new TechEmbedBuilder("Restart Status Loading...")
.text("Restarting Bot :loading:")
.thumbnail("https://i.ibb.co/9gth0SW/1496.gif")
.color(Color.ORANGE)
.build()
).queue(q ->{
Expand All @@ -92,8 +93,9 @@ public void onCommand(TextChannel channel, Member member, SlashCommandEvent e) {
});
}else if(service.equalsIgnoreCase("API")) {
if(ADMIN_ROLES.query().stream().anyMatch(r -> member.getRoles().contains(r))) {
e.replyEmbeds(new TechEmbedBuilder("API Restart Status Loading :loading:")
.text("Restarting API :loading:")
e.replyEmbeds(new TechEmbedBuilder("API Restart Status Loading...")
.text("Restarting API...")
.thumbnail("https://i.ibb.co/9gth0SW/1496.gif")
.color(Color.ORANGE)
.build()
).queue(q -> {
Expand Down

0 comments on commit 0766fb9

Please sign in to comment.