Skip to content

Commit ab2bb45

Browse files
authored
Update discord.md
1 parent 47bed68 commit ab2bb45

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/beta/plugins/discord.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: Discord
33
description: Setting up the Discord plugin.
44
---
55

6+
67
The Discord plugin assigns Cred to contributors participating in Discord chats; for example, by posting and reacting to messages.
78

89

@@ -20,9 +21,6 @@ For instructions on setting up the bot and configuring the plugin, see the [Conf
2021

2122
Cred is minted on Discord reactions. It then flows to connected nodes.
2223

23-
TO DO: add example with diagram....The below diagram illustrates a typical pattern of Cred flow in Discord....
24-
25-
2624

2725
The full set of node and edge types used by the Discord plugin are defined below.
2826

@@ -123,8 +121,9 @@ Below are the basic steps to create your bot, point it at your Discord server an
123121

124122
If you want to change the weight for a default reaction, just put the reaction's literal emoji in `config.json`. For example, if you wanted the 💜 emoji to have a weight that is 5 times a regular reaction, add the line `"💜": 5` to the `config.json`, as shown below.
125123

126-
```
127-
{
124+
125+
```json
126+
{
128127
"guildId": "742885338065666150",
129128
"reactionWeights": {
130129
"👍": 1,
@@ -133,7 +132,8 @@ Below are the basic steps to create your bot, point it at your Discord server an
133132
}
134133
}
135134
```
136-
If you want to set a custom weight for a custom emoji, you'll first need to get the custom emoji ID. You can get this by right clicking on the custom emoji and clicking 'Copy Link'. This will give you a URL to an image of the emoji. The numberic substring in the URL is the emoji ID. For instance, below is the URl for a custom sourcecred emoji called `:sourcecred_pink:`.
135+
136+
If you want to set a custom weight for a custom emoji, you'll first need to get the custom emoji ID. You can get this by right clicking on the custom emoji and clicking 'Copy Link'. This will give you a URL to an image of the emoji. The numberic substring in the URL is the emoji ID. For instance, below is the URl for a custom sourcecred emoji called `:sourcecred_pink:`.
137137

138138
`https://cdn.discordapp.com/emojis/745438325086879794.png?v=1`
139139

@@ -148,4 +148,4 @@ Below are the basic steps to create your bot, point it at your Discord server an
148148

149149
## Status and Caveats
150150

151-
COMING SOON
151+
COMING SOON

0 commit comments

Comments
 (0)