overwolf.social.discord.share
Overwolf APIs / overwolf / overwolf / social / discord / share
function share(
discordShareParams: ShareParameters,
callback: CallbackFunction<Result>,
): void;
If the user is currently logged into Discord, this will perform the media share (image or video).Possible errors that can occur:- Disconnected (user isn't signed in)- MissingFile (trying to share a missing file)- UnsupportedFile (trying to share an unsupported format)- ExceedsMaxSize (the file is too large: > 8 MB for images, > 100 MBfor videos)
Parameters
| Parameter | Type | Description |
|---|---|---|
discordShareParams | ShareParameters | The share parameters. See DiscordShareParameters |
callback | CallbackFunction<Result> | Will contain the status of the request. |
Returns
void