Class VoiceChattingEventArgs
Contains all information after a player presses the voicechat key.
public class VoiceChattingEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent
- Inheritance
-
VoiceChattingEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
VoiceChattingEventArgs(Player, VoiceMessage, VoiceModuleBase, bool)
Initializes a new instance of the VoiceChattingEventArgs class.
public VoiceChattingEventArgs(Player player, VoiceMessage voiceMessage, VoiceModuleBase voiceModule, bool isAllowed = true)
Parameters
Properties
IsAllowed
Gets or sets a value indicating whether the player can voicechat.
public bool IsAllowed { get; set; }
Property Value
Player
Gets the player who's voicechatting.
public Player Player { get; }
Property Value
VoiceMessage
Gets or sets the Player's VoiceMessage.
public VoiceMessage VoiceMessage { get; set; }
Property Value
- VoiceMessage
VoiceModule
Gets the Player's PlayerRoles.Voice.VoiceModuleBase.
public VoiceModuleBase VoiceModule { get; }
Property Value
- VoiceModuleBase