PostToDiscord: ;------------------------------------------------ CurrentSocialMediaPosting := "Discord" Message = Posting Video Links to Discord SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging") IniRead, DiscordVideosWebhookURL, %SettingsIniFilepath%, General, DiscordVideosWebhookURL, %A_Space% if(DiscordVideosWebhookURL = ""){ Message = Unable to Grab DiscordVideosWebhookURL from %SettingsIniFilepath%.`nPlease input the URL and then try again. SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging") Msgbox, Unable to Grab DiscordVideosWebhookURL from %SettingsIniFilepath%.`nPlease input the URL and then try again. Return } /* ; If description is longer than 2k chars, then API will error out. goto section that will allow user to edit video description to shorten it for posting if(StrLen(SocialMediaDescription) > 2000 AND VideoDescriptionForVideosChannel = ""){ Goto, CreateDescriptionForVideosPosting } */ if(SocialMediaDescription = ""){ CreateDescriptionForSocialMedia() } SubmitDescriptionForDiscordVideosChannel: Message := "**" . VideoTitle . "**" . "`n" . SocialMediaDescription . "`n" ; https://stackoverflow.com/questions/63160401/how-to-create-hyperlink-in-discord-in-an-embed-in-general if(BitChuteURL != "") Message .= "[BitChute](<" . BitChuteURL . ">) \| " if(BrighteonURL != "") Message .= "[Brighteon](<" . BrighteonURL . ">) \| " if(OdyseeVideoURL != "") Message .= "[Odysee](<" . OdyseeVideoURL . ">) \| " if(OdyseeAudioURL != "") Message .= "[Odysee (Audio)](<" . OdyseeAudioURL . ">) \| " if(RumbleURL != "") Message .= "[Rumble](<" . RumbleURL . ">) \| " if(DailyMotionURL != "") Message .= "[DailyMotion](<" . DailyMotionURL . ">) \| " if(PodcastTranscriptURL != "") Message .= "[Video Transcript](<" . PodcastTranscriptURL . ">) \| " if(PodcastNumber != "") Message .= "[FDRPodcasts](<" . "https://fdrpodcasts.com/" . PodcastNumber . ">) \| " Status := UploadImageToDiscord(DiscordVideosWebhookURL, Message, VideoThumbFilepath) Message = API Response:`n%Status% SaveOrPostProgress(Message:=Message,PostType:="ErrorLoggingTextFile") SaveOrPostProgress(Message:="Video Links posted to #Videos Successfully.",PostType:="Tooltip,ErrorLoggingTextFile") GuiControl,, PostToDiscordButton, Discord - Posted Successfully sleep, 2000 ToolTip ; Msgbox,,Success,Video Links posted to #Videos Successfully. ; ToolTip Return ; -------------------------------/Discord-------------------------------