Class ChatMessageSendingOptions
Configuration for behaviour of sending utilities when sending a chat message.
Inheritance
Namespace: TehGM.Wolfringo.Utilities
Assembly: Wolfringo.Core.dll
Syntax
public sealed class ChatMessageSendingOptions
Constructors
| Improve this Doc View SourceChatMessageSendingOptions()
Creates a new instance of options, with all flags set to true.
Declaration
public ChatMessageSendingOptions()
Properties
| Improve this Doc View SourceAutoDetectGroupLinks
Whether group links should be automatically detected.
Declaration
public bool AutoDetectGroupLinks { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
AutoDetectWebsiteLinks
Whether website links should be automatically detected.
Declaration
public bool AutoDetectWebsiteLinks { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Default
Default options.
Declaration
public static ChatMessageSendingOptions Default { get; }
Property Value
Type | Description |
---|---|
ChatMessageSendingOptions |
Remarks
These options will automatically detect everything - group and website links, and enable all preview embeds.
DisableEmbeds
Options that enable detection but disable embeds.
Declaration
public static ChatMessageSendingOptions DisableEmbeds { get; }
Property Value
Type | Description |
---|---|
ChatMessageSendingOptions |
Remarks
These options will automatically detect group and website links, but disable all preview embeds.
DisableLinkDetection
Options that will disable all automatic detection.
Declaration
public static ChatMessageSendingOptions DisableLinkDetection { get; }
Property Value
Type | Description |
---|---|
ChatMessageSendingOptions |
Remarks
These options will not detect group and website links.
EnableGroupLinkPreview
Whether group preview should be displayed as embed.
Declaration
public bool EnableGroupLinkPreview { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
Doesn't have any effect if AutoDetectGroupLinks is set to false.
EnableImageLinkPreview
Whether image preview should be displayed as embed.
Declaration
public bool EnableImageLinkPreview { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
Doesn't have any effect if AutoDetectWebsiteLinks is set to false.
EnableWebsiteLinkPreview
Whether website preview should be displayed as embed.
Declaration
public bool EnableWebsiteLinkPreview { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
Doesn't have any effect if AutoDetectWebsiteLinks is set to false.