Skip to content

Commit

Permalink
Removed AnnoyingMessage#send(TextChannel)
Browse files Browse the repository at this point in the history
  • Loading branch information
srnyx committed Dec 10, 2022
1 parent c97a9f9 commit 2429797
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
4 changes: 0 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,17 @@ repositories {
mavenCentral() // org.spigotmc:spigot, net.md-5:bungeecord-api
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") // org.spigotmc:spigot
maven("https://oss.sonatype.org/content/repositories/snapshots/") // org.spigotmc:spigot
maven("https://m2.dv8tion.net/releases") // com.discordsrv:discordsrv
maven("https://nexus.scarsz.me/content/groups/public") // com.discordsrv:discordsrv
}

dependencies {
compileOnly("org.spigotmc", "spigot-api", "1.11-R0.1-SNAPSHOT")
compileOnly("net.md-5", "bungeecord-api", "1.16-R0.4")
compileOnlyApi("com.discordsrv", "discordsrv", "1.26.0")
compileOnly("org.jetbrains", "annotations", "23.0.0")
compileOnly(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
}

plugins {
java
`java-library`
`maven-publish`
}

Expand Down
13 changes: 0 additions & 13 deletions src/main/java/xyz/srnyx/annoyingapi/AnnoyingMessage.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,12 @@
import com.olliez4.interface4.util.json.JSON;
import com.olliez4.interface4.util.json.components.*;

import github.scarsz.discordsrv.dependencies.jda.api.entities.TextChannel;
import github.scarsz.discordsrv.util.DiscordUtil;

import net.md_5.bungee.api.chat.BaseComponent;
import net.md_5.bungee.api.chat.ComponentBuilder;

import org.apache.commons.lang.time.DurationFormatUtils;

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.bukkit.configuration.ConfigurationSection;

Expand Down Expand Up @@ -373,15 +369,6 @@ public void broadcast(@Nullable BroadcastType type, @Nullable Integer fadeIn, @N
}
}

/**
* Sends the message to a Discord {@link TextChannel}
*
* @param channel the {@link TextChannel} to send the message to
*/
public void send(@NotNull TextChannel channel) {
DiscordUtil.sendMessage(channel, ChatColor.stripColor(getMessage()));
}

/**
* Sends the message to the specified {@link CommandSender}
* <p>This will convert the {@link CommandSender} to a {@link AnnoyingSender} and then run {@link #send(AnnoyingSender)}
Expand Down

0 comments on commit 2429797

Please sign in to comment.