Add extra fields
This commit is contained in:
parent
62adda7083
commit
c08d5290b9
1 changed files with 3 additions and 0 deletions
|
|
@ -41,6 +41,9 @@ public class CodeCommand implements Command {
|
||||||
"commands.misc.code.success.description")
|
"commands.misc.code.success.description")
|
||||||
.addField("Code", "[" + args[0] + "](https://discord.gg/" + args[0] + ")", true)
|
.addField("Code", "[" + args[0] + "](https://discord.gg/" + args[0] + ")", true)
|
||||||
.addField("Guild Name", json.getJSONObject("guild").getString("name"), true)
|
.addField("Guild Name", json.getJSONObject("guild").getString("name"), true)
|
||||||
|
.addField("Guild ID", json.getJSONObject("guild").getString("id"), true)
|
||||||
|
.addField("Verification Level", json.getJSONObject("guild").getString("verification_level"), true)
|
||||||
|
.setThumbnail("https://cdn.discordapp.com/icons/" + json.getJSONObject("guild").getString("id") + "/" + json.getJSONObject("guild").getString("icon") + ".png")
|
||||||
.build()).queue();
|
.build()).queue();
|
||||||
e.getTextChannel().sendMessage(json.toString()).queue();
|
e.getTextChannel().sendMessage(json.toString()).queue();
|
||||||
} catch (JSONException ex) {
|
} catch (JSONException ex) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue