Class VoiceChattingEventArgs
Contains all information after a player presses the voicechat key.
Inheritance
System.Object
VoiceChattingEventArgs
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.Events.EventArgs.Player
Assembly: Exiled.Events.dll
Syntax
public class VoiceChattingEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent
Constructors
| Improve this Doc View SourceVoiceChattingEventArgs(Player, VoiceMessage, VoiceModuleBase, Boolean)
Initializes a new instance of the VoiceChattingEventArgs class.
Declaration
public VoiceChattingEventArgs(Player player, VoiceMessage voiceMessage, VoiceModuleBase voiceModule, bool isAllowed = true)
Parameters
Type | Name | Description |
---|---|---|
Player | player | |
VoiceChat.Networking.VoiceMessage | voiceMessage | |
PlayerRoles.Voice.VoiceModuleBase | voiceModule | |
System.Boolean | isAllowed |
Properties
| Improve this Doc View SourceIsAllowed
Gets or sets a value indicating whether or not the player can voicechat.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Player
Gets the player who's voicechatting.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |
VoiceMessage
Gets or sets the Player's VoiceMessage.
Declaration
public VoiceMessage VoiceMessage { get; set; }
Property Value
Type | Description |
---|---|
VoiceChat.Networking.VoiceMessage |
VoiceModule
Gets the Player's PlayerRoles.Voice.VoiceModuleBase.
Declaration
public VoiceModuleBase VoiceModule { get; }
Property Value
Type | Description |
---|---|
PlayerRoles.Voice.VoiceModuleBase |