Class ReceivingVoiceMessageEventArgs
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
receiverPlayerThe player receiving the voice message.
senderPlayerThe player sending the voice message.
voiceModuleVoiceModuleBaseThe senders voice module.
voiceMessageVoiceMessageThe 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
Player
Gets the player receiving the voice message.
public Player Player { get; }
Property Value
Sender
Gets the player sending the voice message.
public Player Sender { get; }
Property Value
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