{"action":"created","issue":{"url":"https://api.github.com/repos/TheHolyWaffle/TeamSpeak-3-Java-API/issues/138","repository_url":"https://api.github.com/repos/TheHolyWaffle/TeamSpeak-3-Java-API","labels_url":"https://api.github.com/repos/TheHolyWaffle/TeamSpeak-3-Java-API/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/TheHolyWaffle/TeamSpeak-3-Java-API/issues/138/comments","events_url":"https://api.github.com/repos/TheHolyWaffle/TeamSpeak-3-Java-API/issues/138/events","html_url":"https://github.com/TheHolyWaffle/TeamSpeak-3-Java-API/issues/138","id":186094515,"number":138,"title":"Question ","user":{"login":"T0biii","id":5702338,"avatar_url":"https://avatars.githubusercontent.com/u/5702338?v=3","gravatar_id":"","url":"https://api.github.com/users/T0biii","html_url":"https://github.com/T0biii","followers_url":"https://api.github.com/users/T0biii/followers","following_url":"https://api.github.com/users/T0biii/following{/other_user}","gists_url":"https://api.github.com/users/T0biii/gists{/gist_id}","starred_url":"https://api.github.com/users/T0biii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/T0biii/subscriptions","organizations_url":"https://api.github.com/users/T0biii/orgs","repos_url":"https://api.github.com/users/T0biii/repos","events_url":"https://api.github.com/users/T0biii/events{/privacy}","received_events_url":"https://api.github.com/users/T0biii/received_events","type":"User","site_admin":false},"labels":[{"id":68005570,"url":"https://api.github.com/repos/TheHolyWaffle/TeamSpeak-3-Java-API/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-29T18:51:51Z","updated_at":"2016-10-29T19:35:41Z","closed_at":"2016-10-29T19:35:41Z","body":"Hey,\r\n\r\ni want to edit the Client Icon ID.\r\nBut i dont know how to edit this ID :( \r\n\r\nI Tried this:\r\napi.editDatabaseClient(tclientId, mapOf(ClientProperty.CLIENT_ICON_ID, IconID));\r\nand this:\r\napi.editClient(tclientId, mapOf(ClientProperty.CLIENT_ICON_ID, IconID));\r\n\r\nAny idee how i can change the id?"},"comment":{"url":"https://api.github.com/repos/TheHolyWaffle/TeamSpeak-3-Java-API/issues/comments/257111457","html_url":"https://github.com/TheHolyWaffle/TeamSpeak-3-Java-API/issues/138#issuecomment-257111457","issue_url":"https://api.github.com/repos/TheHolyWaffle/TeamSpeak-3-Java-API/issues/138","id":257111457,"user":{"login":"rogermb","id":1472572,"avatar_url":"https://avatars.githubusercontent.com/u/1472572?v=3","gravatar_id":"","url":"https://api.github.com/users/rogermb","html_url":"https://github.com/rogermb","followers_url":"https://api.github.com/users/rogermb/followers","following_url":"https://api.github.com/users/rogermb/following{/other_user}","gists_url":"https://api.github.com/users/rogermb/gists{/gist_id}","starred_url":"https://api.github.com/users/rogermb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogermb/subscriptions","organizations_url":"https://api.github.com/users/rogermb/orgs","repos_url":"https://api.github.com/users/rogermb/repos","events_url":"https://api.github.com/users/rogermb/events{/privacy}","received_events_url":"https://api.github.com/users/rogermb/received_events","type":"User","site_admin":false},"created_at":"2016-10-29T19:35:41Z","updated_at":"2016-10-29T19:35:41Z","body":"Icon IDs are managed as *client permissions* on the TS3 server.\r\nYou'll need to use\r\n```java\r\nTS3Api#addClientPermission(int clientDBId, String permName, int value, boolean skipped)\r\n```\r\nto change it, where `clientDBId` is the client's *database* ID, `permName` is `\"i_icon_id\"`, `value` is the ID of the icon and `skipped` doesn't really matter can just be set to `false`.\r\n\r\nNote that there is a difference between a \"client (session) ID\" and a \"client database ID\". If you do not have access to the client's database ID directly, you'll need to get a Client(Info) object from `TS3Api#getClientInfo(int clientId)` (or alternatively from `TS3Api#getClients()`) and call `getDatabaseId()` on that object.\r\n\r\nAlso note that *every* 32-bit integer value can be a valid icon ID, therefore `value` can also be negative or 0. Make sure you handle these cases correctly."}}
{"actor":{"display_login":"rogermb"}}