I used this code which should add a card to a trello board right. However, there is an error that starts on line 4…? Everything seems fine to me. Anyone know what the problem is?
local createBanEvent = game.ReplicatedStorage:WaitForChild("ModeratorEvents").CreateBan
local TrelloAPI = require(game.ServerScriptService:WaitForChild("ModerationScripts").TrelloAPI)
local BoardID = TrelloAPI.BoardsAPI.GetBoardID("Game Bans")
local ListId = TrelloAPI.BoardsAPI.GetListID(BoardID, "Banned Players")
createBanEvent.OnServerEvent:Connect(function(userID, reason, length)
TrelloAPI.CardsAPI.CreateCard(userID, ListId, {
["Description"] = reason.." ["..length.."]",
["idLabels"] = {"62c4572c5407de72ee03c356"},
["AttachmentLink"] = "https://www.roblox.com/users/"..userID.."/profile"
})
end)
Board Id is not correct, that means “Board Name” It’s not a valid parameter
Some Solution:
→ Check If name is correct of board (Copy and paste it)
→ Check if you’re using the right credential and you have access with your token and API key to modify that board.
Hi, So Just checked you’re code and and I discovered this, code and function is right but trello when “AttachmentLink” Parameter is present, does not add “idLabels” im unsure about why… In the meantime, remove the Attachment Link parameter and add the idlabels, It can also be a trello api bug.
Frankly not seeing the use of this as a module. This would be much more useful as a plugin or a VSCode extension. Having this be executed at runtime of the game makes no sense unless you’re trying to use it as a database, which Trello is not designed for.
Even as a plugin, it’s still pretty much a waste of time to develop this. I see no practical use for it.
Nobody asks you to say how trello should be used, there are so many people who use it for their RP games, Also there are many other old trello system similar to these, no point in coming here and write something nonsense in my opinion about something that as you can see is getting used a lot, you’re not *judge *and the discussion should remain on topic.
Hiya, I am trying to make a system where trello records a number of “Miles” How would I get the text of the description,
-- // Require TrelloAPI
local TrelloEvent = game.ReplicatedStorage:WaitForChild("TrelloEvent")
local TrelloAPI = require(game.ServerScriptService:WaitForChild("TrelloAPI"))
local BoardID = TrelloAPI.BoardsAPI.GetBoardID("airmayoramilessystem")
local ListId = TrelloAPI.BoardsAPI.GetListID(BoardID,"Players")
--[[ You can access 3 different categories of functions.
TrelloAPI.BoardsAPI
TrelloAPI.CardsAPI
TrelloAPI.CommentsAPI
--]]
-- // Example Script (ServerScript)
local function Miles(player)
if TrelloAPI.CardsAPI.GetCardOnList(ListId,Player.UserId) then
else
TrelloAPI.CardsAPI.CreateCard(ListId, {
["Name"] = Player.UserId
})
end
end
local function Miles(player)
local CardsOnLists = TrelloAPI.CardsAPI.GetCardsOnList(ListId)
local CardFound = false
for _,CardData in pairs(CardsOnLists) do
if CardData.name == tostring(player.UserId) then
CardFound = true
print("Card Description: ", CardData.desc)
end
end
if not CardFound then
TrelloAPI.CardsAPI.CreateCard(player.UserId, ListId)
end
end