Skip to content

Commit

Permalink
Pass that text... or else?
Browse files Browse the repository at this point in the history
  • Loading branch information
sampoder committed Jul 10, 2022
1 parent 1ef0e11 commit 6e66b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interactions/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const pusher = new Pusher({
const interactionCSS = async (bot, message) => {
const { text, channel, ts } = message
let trimmedText = replaceAll(text, '```', '')
validateCss({trimmedText}, async function (_, data) {
validateCss({text: trimmedText}, async function (_, data) {
if(data.validity){
await reaction(bot, 'add', channel, ts, 'art')
pusher.trigger("css", "new", {
Expand Down

0 comments on commit 6e66b0f

Please sign in to comment.