diff --git a/commands/discord.js b/commands/discord.js index 0c6a3bb..fcbbdea 100644 --- a/commands/discord.js +++ b/commands/discord.js @@ -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' + }, + }, + ])); }, };