Initial upload of discord-contrib-advanced repo
This commit is contained in:
27
discord/discord-token.html
Normal file
27
discord/discord-token.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<script type="text/javascript">
|
||||
RED.nodes.registerType('discord-token', {
|
||||
category: 'config',
|
||||
defaults: {
|
||||
name: {value:"", required: true},
|
||||
},
|
||||
credentials: {
|
||||
token: {type: "text"},
|
||||
},
|
||||
exportable: false,
|
||||
label: function() {
|
||||
return this.name;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<script type="text/x-red" data-template-name="discord-token">
|
||||
<div class="form-row">
|
||||
<label for="node-config-input-name"><i class="icon-tag"></i> Name</label>
|
||||
<input type="text" id="node-config-input-name">
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="node-config-input-token"><i class="icon-bookmark"></i> Token</label>
|
||||
<input type="text" id="node-config-input-token">
|
||||
<p>You can find the Discord API token for one of your bots on <a href="https://discordapp.com/developers/applications" target="_blank">your developer page</a>.</p>
|
||||
</div>
|
||||
</script>
|
||||
Reference in New Issue
Block a user