Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
discord_embed_builder-custom [2017/11/25 21:33] – created ianchandler1990 | discord_embed_builder-custom [2020/10/18 12:07] – Restructured page in an effort to make it more informative. Added example screenshot to sample code and also changed header of "Sample" section to "Example Outputs". Amended outputs dante557 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~NOTOC~~ | + | ====== Discord Embed Builder - Custom |
- | ====== Discord Embed Builder - Going Live Setup ====== | + | |
- | * **[[discord_embed_builder-goinglive#Overview|Overview]]** | + | < |
- | * **[[discord_embed_builder-goinglive# | + | |
- | * **[[discord_embed_builder-goinglive# | + | |
- | * **[[discord_embed_builder-goinglive# | + | |
- | ---- | + | The Discord integration in DeepBot allows you to do some pretty cool things with regards to presenting messages to your Discord server. One such way you can present generated text is through the use of embeds.\\ |
+ | The following guide will go over what is needed in order to make a custom embed for your command to output. | ||
- | ===== Overview | + | ===== Setup ===== |
- | This will allow users to make custom embeds that are used with twitch going live message in discord, by the use of custom commands. | + | |
- | **Note** If you are not live this will pull a test demo message. | + | - Go to the following URL for the embed builder that is used to generate the code used by Deepbot - [[http:// |
+ | - Optional: Copy one of the example JSON codes outlined in the example outputs section below. | ||
+ | - Edit the results on the left hand text box. This will be reflected in the preview window on the right of the webpage. | ||
+ | - When you are happy with the results, click on " | ||
+ | - In the resulting text simply copy/paste into your command | ||
+ | - Ensure that the command is set to run via Discord ONLY. If this is not done a lot of nonsense will be posted to your Twitch chat! | ||
- | ---- | + | ===== Tagging User/ |
+ | In order to tag a particular user/ | ||
+ | This is then added to the " | ||
+ | In order to get the ID of the user/ | ||
+ | Once this is enabled you will be able to right click a user, channel or role and click the "Copy ID" option. | ||
+ | In order for Deepbot to make use of this you will need to copy the ID in the following formats | ||
+ | |||
+ | ^ Type ^ Structure ^ Example ^ | ||
+ | |User | < | ||
+ | |Channel| <# | ||
+ | |Role| < | ||
+ | |||
+ | ===== Explanation ===== | ||
+ | |||
+ | **Notes** This explains what the code within deepbots code does compared to the json above | ||
+ | |||
+ | fi= 0=FALSE 1= TRUE, field inline, to have to sections inline next to each other will move to new line if row is full.\\ | ||
+ | fn= field name, the name you want to display for that sections.\\ | ||
+ | fv= field text, this is the text that will display under the section name.\\ | ||
+ | content=CONTENT\\ | ||
+ | title=TITLE\\ | ||
+ | description=DESCRIPTION\\ | ||
+ | titleUrl=TITLE URL MUST BE WEBSITE LINK\\ | ||
+ | color=purple, | ||
+ | timestamp=0=FALSE 1= TRUE\\ | ||
+ | footerText=FOOTER TEXT footer\\ | ||
+ | footerIcon=FOOTER ICON IMAGE MUST BE URL TO PICTURE\\ | ||
+ | thumbnailUrl=THUMBNAIL ICON IMAGE MUST BE URL TO PICTURE\\ | ||
+ | imageUrl=IMAGE THE WILL DISPLAYED IN THE EMBED MUST BE URL TO PICTURE\\ | ||
+ | authorName=AUTHOR NAME\\ | ||
+ | authorIcon=AUTHOR PICTURE MUST BE URL TO PICTURE\\ | ||
+ | authorUrl=LINK TO GO TO WHEN AUTHOR IS CLICKED\\ | ||
+ | |||
+ | ===== Example Outputs | ||
+ | |||
+ | ^ JSON Code ^ Output ^ | ||
+ | | < | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | } | ||
+ | </ | ||