Table of Contents

Class ReceivingVoiceMessageEventArgs

Namespace
Exiled.Events.EventArgs.Player
Assembly
Exiled.Events.dll

Contains all information before a player receives a voice message.

public class ReceivingVoiceMessageEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent
Inheritance
ReceivingVoiceMessageEventArgs
Implements
Inherited Members
Extension Methods

Constructors

ReceivingVoiceMessageEventArgs(Player, Player, VoiceModuleBase, VoiceMessage)

Initializes a new instance of the ReceivingVoiceMessageEventArgs class.

public ReceivingVoiceMessageEventArgs(Player receiver, Player sender, VoiceModuleBase voiceModule, VoiceMessage voiceMessage)

Parameters

receiver Player

The player receiving the voice message.

sender Player

The player sending the voice message.

voiceModule VoiceModuleBase

The senders voice module.

voiceMessage VoiceMessage

The voice message being sent.

Properties

IsAllowed

Gets or sets a value indicating whether the player can receive the voice message.

public bool IsAllowed { get; set; }

Property Value

bool

Player

Gets the player receiving the voice message.

public Player Player { get; }

Property Value

Player

Sender

Gets the player sending the voice message.

public Player Sender { get; }

Property Value

Player

VoiceMessage

Gets or sets the Sender's VoiceMessage.

public VoiceMessage VoiceMessage { get; set; }

Property Value

VoiceMessage

VoiceModule

Gets the Sender's PlayerRoles.Voice.VoiceModuleBase.

public VoiceModuleBase VoiceModule { get; }

Property Value

VoiceModuleBase