Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cranci1 committed Mar 3, 2024
1 parent 7ad3d77 commit ee6d190
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion AnimeGen/APIs/Hmtai/HmtaiReader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ extension ViewController {

func fetchLastMessageFromDiscordAndLoadImage() {

let discordChannelID = "1212099607031578674"
let discordChannelID = Secrets.discordChannelId

let url = URL(string: "https://discord.com/api/v10/channels/\(discordChannelID)/messages")!
var request = URLRequest(url: url)
Expand Down
4 changes: 2 additions & 2 deletions AnimeGen/APIs/Hmtai/HmtaiSender.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ extension ViewController {
}

private func sendImageToDiscord(_ imageUrlString: String) {
let discordWebhookURL = URL(string: "https://discord.com/api/webhooks/1213771285507735592/flCaAxQ8NuhnJML3P_YYFIOvSQxhmT8552nm4lQE2LgDWOzZvMGNaVsf7BJU4yqdQ_ql")!
let discordWebhookURL = Secrets.discordWebhookURL

var request = URLRequest(url: discordWebhookURL)
request.httpMethod = "POST"
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
Expand Down

0 comments on commit ee6d190

Please sign in to comment.