{"action":"created","issue":{"url":"https://api.github.com/repos/dirigeants/komada/issues/221","repository_url":"https://api.github.com/repos/dirigeants/komada","labels_url":"https://api.github.com/repos/dirigeants/komada/issues/221/labels{/name}","comments_url":"https://api.github.com/repos/dirigeants/komada/issues/221/comments","events_url":"https://api.github.com/repos/dirigeants/komada/issues/221/events","html_url":"https://github.com/dirigeants/komada/issues/221","id":227288624,"number":221,"title":"permissionLevel.js not correctly working","user":{"login":"Lovinity","id":11471458,"avatar_url":"https://avatars0.githubusercontent.com/u/11471458?v=3","gravatar_id":"","url":"https://api.github.com/users/Lovinity","html_url":"https://github.com/Lovinity","followers_url":"https://api.github.com/users/Lovinity/followers","following_url":"https://api.github.com/users/Lovinity/following{/other_user}","gists_url":"https://api.github.com/users/Lovinity/gists{/gist_id}","starred_url":"https://api.github.com/users/Lovinity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lovinity/subscriptions","organizations_url":"https://api.github.com/users/Lovinity/orgs","repos_url":"https://api.github.com/users/Lovinity/repos","events_url":"https://api.github.com/users/Lovinity/events{/privacy}","received_events_url":"https://api.github.com/users/Lovinity/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-09T08:31:24Z","updated_at":"2017-05-09T12:22:43Z","closed_at":null,"body":"### Version of Komada\r\n0.19.0\r\n\r\n### Are core files modified?\r\nOnly a couple, but nothing that interferes with permissionLevel.js\r\n\r\n### Describe the problem\r\npermissionLevel.js returns the wrong number for permissions.\r\n\r\n### Expected Behaviour\r\npermissionLevel.js returns 10 for bot owner, 4 for guild owner, 3 for adminRole user, 2 for modRole user, 0 for everyone else.\r\n\r\n### Actual Behaviour\r\npermissionLevel.js ignores admins, mods, and guild owners; only returns 10 for bot owner or 0 for everyone else.\r\n\r\n### Steps to Reproduce.\r\nUsing a command which accesses msg.author.permLevel."},"comment":{"url":"https://api.github.com/repos/dirigeants/komada/issues/comments/300146474","html_url":"https://github.com/dirigeants/komada/issues/221#issuecomment-300146474","issue_url":"https://api.github.com/repos/dirigeants/komada/issues/221","id":300146474,"user":{"login":"CyberiumShadow","id":4259904,"avatar_url":"https://avatars0.githubusercontent.com/u/4259904?v=3","gravatar_id":"","url":"https://api.github.com/users/CyberiumShadow","html_url":"https://github.com/CyberiumShadow","followers_url":"https://api.github.com/users/CyberiumShadow/followers","following_url":"https://api.github.com/users/CyberiumShadow/following{/other_user}","gists_url":"https://api.github.com/users/CyberiumShadow/gists{/gist_id}","starred_url":"https://api.github.com/users/CyberiumShadow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CyberiumShadow/subscriptions","organizations_url":"https://api.github.com/users/CyberiumShadow/orgs","repos_url":"https://api.github.com/users/CyberiumShadow/repos","events_url":"https://api.github.com/users/CyberiumShadow/events{/privacy}","received_events_url":"https://api.github.com/users/CyberiumShadow/received_events","type":"User","site_admin":false},"created_at":"2017-05-09T12:22:43Z","updated_at":"2017-05-09T12:22:43Z","body":"@Lovinity Can i get a few screenshots?"}}
{"actor":{"display_login":"CyberiumShadow"}}