Skip to content

Commit

Permalink
Merge pull request #7 from Helithumper/discord-http
Browse files Browse the repository at this point in the history
Discord HTTP to HTTPS
  • Loading branch information
jeffreydivi authored Aug 20, 2023
2 parents 1aac35d + dd8cc16 commit 8597db3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions util/approve.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import json
import os
import yaml

import boto3
import requests
from boto3.dynamodb.conditions import Key, Attr
import yaml
from boto3.dynamodb.conditions import Attr, Key

from util.options import Options
from util.horsepass import HorsePass
from util.options import Options

options = Options.fetch()

Expand Down Expand Up @@ -44,7 +45,7 @@ def approve_member(member_id):
"Content-Type": "application/json",
"X-Audit-Log-Reason": "Hack@UCF OnboardLite Bot"
}
requests.put(f"http://discordapp.com/api/guilds/{options.get('discord', {}).get('guild_id')}/members/{discord_id}", headers=headers)
requests.put(f"https://discordapp.com/api/guilds/{options.get('discord', {}).get('guild_id')}/members/{discord_id}", headers=headers)

# Get DM channel ID to send later...
get_channel_id_body = {
Expand Down

0 comments on commit 8597db3

Please sign in to comment.