Skip to content

Commit

Permalink
🔀 Merge branch develop for 1.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Androz2091 committed Apr 29, 2020
2 parents 5a99579 + dcc9c41 commit 4bdd4f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/blocks/discord/channels/get_channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ Blockly.JavaScript[blockName] = function(block){
const value = Blockly.JavaScript.valueToCode(block, "VALUE", Blockly.JavaScript.ORDER_ATOMIC);
const searchType = block.getFieldValue("SEARCH_TYPE");
if(searchType === "NAME"){
return [ `s4d.client.channels.cache.find((channel) => channel.name === ${value}`, Blockly.JavaScript.ORDER_NONE ];
return [ `s4d.client.channels.cache.find((channel) => channel.name === ${value})`, Blockly.JavaScript.ORDER_ATOMIC ];
} else {
return [ `s4d.client.channels.cache.get(${value})`, Blockly.JavaScript.ORDER_NONE ];
return [ `s4d.client.channels.cache.get(${value})`, Blockly.JavaScript.ORDER_ATOMIC ];
}
};

Expand Down

0 comments on commit 4bdd4f6

Please sign in to comment.