Skip to content

Commit

Permalink
🐛 Fix server owner name block
Browse files Browse the repository at this point in the history
  • Loading branch information
Androz2091 committed Feb 5, 2021
1 parent 425928a commit 282a3ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blocks/discord/servers/server_owner.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Blockly.Blocks[blockName] = {

Blockly.JavaScript[blockName] = function(block){
const server = Blockly.JavaScript.valueToCode(block, "SERVER", Blockly.JavaScript.ORDER_ATOMIC);
return [ `${server}.owner || ${server}.members.fetch(${server}.ownerID})`, Blockly.JavaScript.ORDER_NONE ];
return [ `${server}.owner || ${server}.members.fetch(${server}.ownerID)`, Blockly.JavaScript.ORDER_NONE ];
};

registerRestrictions(blockName, [
Expand Down

0 comments on commit 282a3ab

Please sign in to comment.