Uses 5909K of libraries. Click here for Pure Java version (8995L/47K).
1 | !7 |
2 | |
3 | set flag AllowMetaCode. meta-transformNow { tok_standardBot } |
4 | |
5 | standard bot DiscordHelpEmbedTest { |
6 | public S processSimplifiedLine(S s, O... _) { |
7 | try answer super.processSimplifiedLine(s, _); |
8 | |
9 | if "embed test" { |
10 | optPar MessageChannel channel; |
11 | new EmbedBuilder eb; |
12 | eb.setAuthor("MKLab FM Bot", null, null); |
13 | eb.setTitle("Purpose", null); |
14 | eb.setDescription("I play MKLab FM, the best Electronic Dance Music Radio, in a voice channel of your choice."); |
15 | eb.addField("Syntax", "bla\nblubb\nmore", true); |
16 | // small font footer |
17 | eb.setFooter("Nobody reads the fine print", null); |
18 | eb.setThumbnail(imageSnippetURL(#1102722)); // Any URL works |
19 | channel.sendMessage(eb.build()).queue(); |
20 | } |
21 | |
22 | null; |
23 | } |
24 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025400 |
Snippet name: | Discord Help Embed Test |
Eternal ID of this version: | #1025400/4 |
Text MD5: | 170421222abf914fff2a0cc24e8f7992 |
Transpilation MD5: | 1362e618aed661013535733802f0bb24 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-27 19:47:13 |
Source code size: | 797 bytes / 24 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 198 / 5683 |
Version history: | 3 change(s) |
Referenced in: | [show references] |