Table of Contents

Class VoiceChattingEventArgs

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

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

player Player
voiceMessage VoiceMessage
voiceModule VoiceModuleBase
isAllowed bool

Properties

IsAllowed

Gets or sets a value indicating whether the player can voicechat.

public bool IsAllowed { get; set; }

Property Value

bool

Player

Gets the player who's voicechatting.

public Player Player { get; }

Property Value

Player

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