{"action":"created","comment":{"url":"https://api.github.com/repos/BlackSynder/02-bot/pulls/comments/168933314","pull_request_review_id":97385516,"id":168933314,"diff_hunk":"@@ -131,6 +131,25 @@ def __init__(self, bot):\n             await ctx.author.send(f\"Could not send a warning to `{target}`.\\n\"\n                                   \"They may have DMs disables, or have blocked me.\\n\\n\"\n                                   f\"Warning text was:\\n{warning}\")\n+            \n+    @command(hidden=True, aliases=['prune, p'])\n+    async def purge(self, ctx, count: int):\n+        \"\"\"[p]purge <n> [@user] - purge <n> messages. Ping @user to only delete that user's messages of the last <n> messages. Multiple users also supported.\"\"\"\n+        if ctx.channel.permissions_for(ctx.author).manage_messages:\n+            specific_users = [i.id for i in ctx.message.mentions]","path":"cogs/moderation.py","position":9,"original_position":9,"commit_id":"63dd11acd3b1d1d172b90bd9cc6e58a519ee83fe","original_commit_id":"63dd11acd3b1d1d172b90bd9cc6e58a519ee83fe","user":{"login":"BlackSynder","id":9393241,"avatar_url":"https://avatars2.githubusercontent.com/u/9393241?v=4","gravatar_id":"","url":"https://api.github.com/users/BlackSynder","html_url":"https://github.com/BlackSynder","followers_url":"https://api.github.com/users/BlackSynder/followers","following_url":"https://api.github.com/users/BlackSynder/following{/other_user}","gists_url":"https://api.github.com/users/BlackSynder/gists{/gist_id}","starred_url":"https://api.github.com/users/BlackSynder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlackSynder/subscriptions","organizations_url":"https://api.github.com/users/BlackSynder/orgs","repos_url":"https://api.github.com/users/BlackSynder/repos","events_url":"https://api.github.com/users/BlackSynder/events{/privacy}","received_events_url":"https://api.github.com/users/BlackSynder/received_events","type":"User","site_admin":false},"body":"i dont like this. i think its a better idea to add an optional arg after count for a member converter so id and names work too and it isnt as hacky as this","created_at":"2018-02-17T21:26:22Z","updated_at":"2018-02-17T21:30:09Z","html_url":"https://github.com/BlackSynder/02-bot/pull/1#discussion_r168933314","pull_request_url":"https://api.github.com/repos/BlackSynder/02-bot/pulls/1","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/BlackSynder/02-bot/pulls/comments/168933314"},"html":{"href":"https://github.com/BlackSynder/02-bot/pull/1#discussion_r168933314"},"pull_request":{"href":"https://api.github.com/repos/BlackSynder/02-bot/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/BlackSynder/02-bot/pulls/1","id":169802160,"html_url":"https://github.com/BlackSynder/02-bot/pull/1","diff_url":"https://github.com/BlackSynder/02-bot/pull/1.diff","patch_url":"https://github.com/BlackSynder/02-bot/pull/1.patch","issue_url":"https://api.github.com/repos/BlackSynder/02-bot/issues/1","number":1,"state":"open","locked":false,"title":"Add purge/prune command","user":{"login":"appu1232","id":14967932,"avatar_url":"https://avatars1.githubusercontent.com/u/14967932?v=4","gravatar_id":"","url":"https://api.github.com/users/appu1232","html_url":"https://github.com/appu1232","followers_url":"https://api.github.com/users/appu1232/followers","following_url":"https://api.github.com/users/appu1232/following{/other_user}","gists_url":"https://api.github.com/users/appu1232/gists{/gist_id}","starred_url":"https://api.github.com/users/appu1232/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appu1232/subscriptions","organizations_url":"https://api.github.com/users/appu1232/orgs","repos_url":"https://api.github.com/users/appu1232/repos","events_url":"https://api.github.com/users/appu1232/events{/privacy}","received_events_url":"https://api.github.com/users/appu1232/received_events","type":"User","site_admin":false},"body":"Allows mods to purge the last <n> messages in a channel. Optionally, ping users to only delete messages of those users. Helpful against raids. Confirmation for when trying to delete > 100 messages to prevent accidental panic.","created_at":"2018-02-17T21:22:04Z","updated_at":"2018-02-17T21:30:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ed0bef83a8e53aca324e2af7630a9f2628e601e0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/BlackSynder/02-bot/pulls/1/commits","review_comments_url":"https://api.github.com/repos/BlackSynder/02-bot/pulls/1/comments","review_comment_url":"https://api.github.com/repos/BlackSynder/02-bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BlackSynder/02-bot/issues/1/comments","statuses_url":"https://api.github.com/repos/BlackSynder/02-bot/statuses/63dd11acd3b1d1d172b90bd9cc6e58a519ee83fe","head":{"label":"appu1232:patch-1","ref":"patch-1","sha":"63dd11acd3b1d1d172b90bd9cc6e58a519ee83fe","user":{"login":"appu1232","id":14967932,"avatar_url":"https://avatars1.githubusercontent.com/u/14967932?v=4","gravatar_id":"","url":"https://api.github.com/users/appu1232","html_url":"https://github.com/appu1232","followers_url":"https://api.github.com/users/appu1232/followers","following_url":"https://api.github.com/users/appu1232/following{/other_user}","gists_url":"https://api.github.com/users/appu1232/gists{/gist_id}","starred_url":"https://api.github.com/users/appu1232/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appu1232/subscriptions","organizations_url":"https://api.github.com/users/appu1232/orgs","repos_url":"https://api.github.com/users/appu1232/repos","events_url":"https://api.github.com/users/appu1232/events{/privacy}","received_events_url":"https://api.github.com/users/appu1232/received_events","type":"User","site_admin":false},"repo":{"id":121889910,"name":"02-bot","full_name":"appu1232/02-bot","owner":{"login":"appu1232","id":14967932,"avatar_url":"https://avatars1.githubusercontent.com/u/14967932?v=4","gravatar_id":"","url":"https://api.github.com/users/appu1232","html_url":"https://github.com/appu1232","followers_url":"https://api.github.com/users/appu1232/followers","following_url":"https://api.github.com/users/appu1232/following{/other_user}","gists_url":"https://api.github.com/users/appu1232/gists{/gist_id}","starred_url":"https://api.github.com/users/appu1232/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appu1232/subscriptions","organizations_url":"https://api.github.com/users/appu1232/orgs","repos_url":"https://api.github.com/users/appu1232/repos","events_url":"https://api.github.com/users/appu1232/events{/privacy}","received_events_url":"https://api.github.com/users/appu1232/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/appu1232/02-bot","description":"A 02-themed bot for the Darling in the FranXX Discord server.","fork":true,"url":"https://api.github.com/repos/appu1232/02-bot","forks_url":"https://api.github.com/repos/appu1232/02-bot/forks","keys_url":"https://api.github.com/repos/appu1232/02-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/appu1232/02-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/appu1232/02-bot/teams","hooks_url":"https://api.github.com/repos/appu1232/02-bot/hooks","issue_events_url":"https://api.github.com/repos/appu1232/02-bot/issues/events{/number}","events_url":"https://api.github.com/repos/appu1232/02-bot/events","assignees_url":"https://api.github.com/repos/appu1232/02-bot/assignees{/user}","branches_url":"https://api.github.com/repos/appu1232/02-bot/branches{/branch}","tags_url":"https://api.github.com/repos/appu1232/02-bot/tags","blobs_url":"https://api.github.com/repos/appu1232/02-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/appu1232/02-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/appu1232/02-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/appu1232/02-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/appu1232/02-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/appu1232/02-bot/languages","stargazers_url":"https://api.github.com/repos/appu1232/02-bot/stargazers","contributors_url":"https://api.github.com/repos/appu1232/02-bot/contributors","subscribers_url":"https://api.github.com/repos/appu1232/02-bot/subscribers","subscription_url":"https://api.github.com/repos/appu1232/02-bot/subscription","commits_url":"https://api.github.com/repos/appu1232/02-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/appu1232/02-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/appu1232/02-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/appu1232/02-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/appu1232/02-bot/contents/{+path}","compare_url":"https://api.github.com/repos/appu1232/02-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/appu1232/02-bot/merges","archive_url":"https://api.github.com/repos/appu1232/02-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/appu1232/02-bot/downloads","issues_url":"https://api.github.com/repos/appu1232/02-bot/issues{/number}","pulls_url":"https://api.github.com/repos/appu1232/02-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/appu1232/02-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/appu1232/02-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/appu1232/02-bot/labels{/name}","releases_url":"https://api.github.com/repos/appu1232/02-bot/releases{/id}","deployments_url":"https://api.github.com/repos/appu1232/02-bot/deployments","created_at":"2018-02-17T20:29:14Z","updated_at":"2018-02-17T20:29:16Z","pushed_at":"2018-02-17T21:21:39Z","git_url":"git://github.com/appu1232/02-bot.git","ssh_url":"git@github.com:appu1232/02-bot.git","clone_url":"https://github.com/appu1232/02-bot.git","svn_url":"https://github.com/appu1232/02-bot","homepage":null,"size":43,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"BlackSynder:master","ref":"master","sha":"014165fc61fd30f53ac3b635e57ab38c20d36caf","user":{"login":"BlackSynder","id":9393241,"avatar_url":"https://avatars2.githubusercontent.com/u/9393241?v=4","gravatar_id":"","url":"https://api.github.com/users/BlackSynder","html_url":"https://github.com/BlackSynder","followers_url":"https://api.github.com/users/BlackSynder/followers","following_url":"https://api.github.com/users/BlackSynder/following{/other_user}","gists_url":"https://api.github.com/users/BlackSynder/gists{/gist_id}","starred_url":"https://api.github.com/users/BlackSynder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlackSynder/subscriptions","organizations_url":"https://api.github.com/users/BlackSynder/orgs","repos_url":"https://api.github.com/users/BlackSynder/repos","events_url":"https://api.github.com/users/BlackSynder/events{/privacy}","received_events_url":"https://api.github.com/users/BlackSynder/received_events","type":"User","site_admin":false},"repo":{"id":121135409,"name":"02-bot","full_name":"BlackSynder/02-bot","owner":{"login":"BlackSynder","id":9393241,"avatar_url":"https://avatars2.githubusercontent.com/u/9393241?v=4","gravatar_id":"","url":"https://api.github.com/users/BlackSynder","html_url":"https://github.com/BlackSynder","followers_url":"https://api.github.com/users/BlackSynder/followers","following_url":"https://api.github.com/users/BlackSynder/following{/other_user}","gists_url":"https://api.github.com/users/BlackSynder/gists{/gist_id}","starred_url":"https://api.github.com/users/BlackSynder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlackSynder/subscriptions","organizations_url":"https://api.github.com/users/BlackSynder/orgs","repos_url":"https://api.github.com/users/BlackSynder/repos","events_url":"https://api.github.com/users/BlackSynder/events{/privacy}","received_events_url":"https://api.github.com/users/BlackSynder/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BlackSynder/02-bot","description":"A 02-themed bot for the Darling in the FranXX Discord server.","fork":false,"url":"https://api.github.com/repos/BlackSynder/02-bot","forks_url":"https://api.github.com/repos/BlackSynder/02-bot/forks","keys_url":"https://api.github.com/repos/BlackSynder/02-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BlackSynder/02-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BlackSynder/02-bot/teams","hooks_url":"https://api.github.com/repos/BlackSynder/02-bot/hooks","issue_events_url":"https://api.github.com/repos/BlackSynder/02-bot/issues/events{/number}","events_url":"https://api.github.com/repos/BlackSynder/02-bot/events","assignees_url":"https://api.github.com/repos/BlackSynder/02-bot/assignees{/user}","branches_url":"https://api.github.com/repos/BlackSynder/02-bot/branches{/branch}","tags_url":"https://api.github.com/repos/BlackSynder/02-bot/tags","blobs_url":"https://api.github.com/repos/BlackSynder/02-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BlackSynder/02-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BlackSynder/02-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/BlackSynder/02-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BlackSynder/02-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/BlackSynder/02-bot/languages","stargazers_url":"https://api.github.com/repos/BlackSynder/02-bot/stargazers","contributors_url":"https://api.github.com/repos/BlackSynder/02-bot/contributors","subscribers_url":"https://api.github.com/repos/BlackSynder/02-bot/subscribers","subscription_url":"https://api.github.com/repos/BlackSynder/02-bot/subscription","commits_url":"https://api.github.com/repos/BlackSynder/02-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/BlackSynder/02-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/BlackSynder/02-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/BlackSynder/02-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/BlackSynder/02-bot/contents/{+path}","compare_url":"https://api.github.com/repos/BlackSynder/02-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BlackSynder/02-bot/merges","archive_url":"https://api.github.com/repos/BlackSynder/02-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BlackSynder/02-bot/downloads","issues_url":"https://api.github.com/repos/BlackSynder/02-bot/issues{/number}","pulls_url":"https://api.github.com/repos/BlackSynder/02-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/BlackSynder/02-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/BlackSynder/02-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BlackSynder/02-bot/labels{/name}","releases_url":"https://api.github.com/repos/BlackSynder/02-bot/releases{/id}","deployments_url":"https://api.github.com/repos/BlackSynder/02-bot/deployments","created_at":"2018-02-11T15:09:51Z","updated_at":"2018-02-11T15:13:07Z","pushed_at":"2018-02-17T21:22:05Z","git_url":"git://github.com/BlackSynder/02-bot.git","ssh_url":"git@github.com:BlackSynder/02-bot.git","clone_url":"https://github.com/BlackSynder/02-bot.git","svn_url":"https://github.com/BlackSynder/02-bot","homepage":null,"size":43,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BlackSynder/02-bot/pulls/1"},"html":{"href":"https://github.com/BlackSynder/02-bot/pull/1"},"issue":{"href":"https://api.github.com/repos/BlackSynder/02-bot/issues/1"},"comments":{"href":"https://api.github.com/repos/BlackSynder/02-bot/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/BlackSynder/02-bot/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/BlackSynder/02-bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BlackSynder/02-bot/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/BlackSynder/02-bot/statuses/63dd11acd3b1d1d172b90bd9cc6e58a519ee83fe"}},"author_association":"NONE"}}
{"actor":{"display_login":"BlackSynder"}}