Table of Contents

Class Message

Namespace
Exiled.API.Features
Assembly
Exiled.API.dll

A useful class for saving type-selective message configurations.

public class Message
Inheritance
Message
Inherited Members
Extension Methods

Constructors

Message()

Initializes a new instance of the Message class.

public Message()

Message(string, ushort, bool, MessageType)

Initializes a new instance of the Message class.

public Message(string content, ushort duration = 10, bool show = true, MessageType type = MessageType.Broadcast)

Parameters

content string

The content of the message.

duration ushort

The duration of the message, in seconds.

show bool

Whether the message should be shown.

type MessageType

The type of the message.

Properties

Content

Gets or sets the message content.

public string Content { get; set; }

Property Value

string

Duration

Gets or sets the message duration.

public ushort Duration { get; set; }

Property Value

ushort

Show

Gets or sets a value indicating whether the message should be shown.

public bool Show { get; set; }

Property Value

bool

Type

Gets or sets the message type.

public MessageType Type { get; set; }

Property Value

MessageType

Methods

ToString()

Returns the Message in a human-readable format.

public override string ToString()

Returns

string

A string containing Message-related data.