diff --git a/.github/workflows/archive-discord-thread.yml b/.github/workflows/delete-discord-thread.yml similarity index 75% rename from .github/workflows/archive-discord-thread.yml rename to .github/workflows/delete-discord-thread.yml index 9b98b3b..92972e6 100644 --- a/.github/workflows/archive-discord-thread.yml +++ b/.github/workflows/delete-discord-thread.yml @@ -1,4 +1,4 @@ -name: Archive Discord Thread on GitHub Issue Closure +name: Delete Discord Thread on GitHub Issue Closure on: issues: @@ -21,13 +21,8 @@ jobs: if [ -n "$THREAD_ID" ]; then echo "Thread found: $THREAD_ID. Archiving..." - curl -X PATCH "https://discord.com/api/v10/channels/$THREAD_ID" \ - -H "Authorization: Bot ${{ secrets.DISCORD_BOT_TOKEN }}" \ - -H "Content-Type: application/json" \ - -d '{ - "archived": true, - "locked": true - }' + curl -X DELETE "https://discord.com/api/v10/channels/$THREAD_ID" \ + -H "Authorization: Bot ${{ secrets.DISCORD_BOT_TOKEN }}" else echo "No thread found for issue: $ISSUE_TITLE" fi