Skip to content

Commit

Permalink
fix Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
HypheX authored Jan 31, 2019
1 parent 59a3eb8 commit fc5278f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Trello/Constructors/Card.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ Card.new = function(data, BoardCon, ListCon, CardCon)

function NewCard:Comment(text)
if text then
if type(text) == string then
if type(text) == "string" then
pcall(function()
HTTP:PostAsync("https://api.trello.com/1/cards/"..self:GetId().."/actions/comments"..auth.."?text="..text)
HTTP:PostAsync("https://api.trello.com/1/cards/"..self:GetId().."/actions/comments"..auth.."&text="..text, "{}")
end)
else
error("Card:Comment() - string expected, got "..type(text), 0)
Expand Down

0 comments on commit fc5278f

Please sign in to comment.