mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
i didn't JSON.stringify() in the discord command
This commit is contained in:
parent
c4c2cd48e7
commit
6999a15575
1 changed files with 14 additions and 1 deletions
|
@ -5,6 +5,19 @@ module.exports = {
|
|||
usage: '',
|
||||
trusted: 0,
|
||||
execute: function(bot) {
|
||||
bot.core.run('minecraft:tellraw @a ["",{"text":"The Discord invite is ","color":"white"},{"text":"https://discord.gg/xdgCkUyaA4","color":"blue","clickEvent":{"action":"open_url","value":"https://discord.gg/xdgCkUyaA4"}}]');
|
||||
bot.core.run('minecraft:tellraw @a' + JSON.stringify([
|
||||
{
|
||||
text: 'The Discord invite is ',
|
||||
color: 'white',
|
||||
},
|
||||
{
|
||||
text: 'https://discord.gg/xdgCkUyaA4',
|
||||
color: 'blue',
|
||||
clickEvent: {
|
||||
action: 'open_url',
|
||||
value: 'https://discord.gg/xdgCkUyaA4'
|
||||
},
|
||||
},
|
||||
]));
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue