Table of Contents

Class VoiceAttachment

Namespace
NetCord
Assembly
NetCord.dll
public class VoiceAttachment : Attachment, IEntity, ISpanFormattable, IFormattable, IEquatable<Entity>, IJsonModel<JsonAttachment>
Inheritance
VoiceAttachment
Implements
Inherited Members

Constructors

VoiceAttachment(JsonAttachment)

public VoiceAttachment(JsonAttachment jsonModel)

Parameters

jsonModel JsonAttachment

Properties

Duration

The duration of the audio file.

public TimeSpan Duration { get; }

Property Value

TimeSpan

Waveform

Byte array representing a sampled waveform. It is intended to be a preview of the entire voice message. Clients sample the recording at most once per 100 milliseconds, but will downsample so that no more than 256 datapoints are in the waveform.

public IReadOnlyList<byte> Waveform { get; }

Property Value

IReadOnlyList<byte>