mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-15 23:40:17 +02:00
Corrected missing header for delete_invite
This commit is contained in:
parent
7e05054854
commit
4383e9314d
@ -132,7 +132,7 @@ class DiscordManager:
|
||||
|
||||
@staticmethod
|
||||
def delete_invite(invite_id):
|
||||
custom_headers = {'accept': 'application/json'}
|
||||
custom_headers = {'authorization': DiscordManager.get_auth_token()}
|
||||
path = DISCORD_URL + "/invite/" + str(invite_id)
|
||||
r = requests.delete(path, headers=custom_headers)
|
||||
r.raise_for_status()
|
||||
|
Loading…
x
Reference in New Issue
Block a user