-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d15fb92
commit 7bf483a
Showing
15 changed files
with
273 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
servers.json | ||
admin.json | ||
test.json | ||
*.hprof | ||
/build | ||
/.gradle |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import net.dv8tion.jda.internal.requests.Method; | ||
import net.dv8tion.jda.internal.requests.Route; | ||
|
||
import java.lang.reflect.Constructor; | ||
|
||
public class Inaccessibles { | ||
/** | ||
* This is private by default | ||
* | ||
* @param method look | ||
* @param route somewhere | ||
* @return else | ||
*/ | ||
public static Route getRoute(Method method, String route) { | ||
try { | ||
Constructor<?> constructor = Route.class.getDeclaredConstructor(Method.class, String.class); | ||
constructor.setAccessible(true); | ||
return (Route) constructor.newInstance(method, route); | ||
} catch (Exception e) { | ||
return null; | ||
} | ||
} | ||
|
||
public static String toUnsignedString(long num) { | ||
return Long.toUnsignedString(num); | ||
} | ||
} |
Oops, something went wrong.