@@ -41,13 +41,15 @@ class AttachmentBuilder {
4141
4242 /**
4343 * The base64 encoded byte array representing a sampled waveform
44+ * <info>This is only for voice message attachments.</info>
4445 *
4546 * @type {?string }
4647 */
4748 this . waveform = data . waveform ;
4849
4950 /**
5051 * The duration of the attachment in seconds
52+ * <info>This is only for voice message attachments.</info>
5153 *
5254 * @type {?number }
5355 */
@@ -100,6 +102,7 @@ class AttachmentBuilder {
100102
101103 /**
102104 * Sets the waveform of this attachment.
105+ * <info>This is only for voice message attachments.</info>
103106 *
104107 * @param {string } waveform The base64 encoded byte array representing a sampled waveform
105108 * @returns {AttachmentBuilder } This attachment
@@ -111,6 +114,7 @@ class AttachmentBuilder {
111114
112115 /**
113116 * Sets the duration of this attachment.
117+ * <info>This is only for voice message attachments.</info>
114118 *
115119 * @param {number } duration The duration of the attachment in seconds
116120 * @returns {AttachmentBuilder } This attachment
@@ -176,6 +180,6 @@ exports.AttachmentBuilder = AttachmentBuilder;
176180 * @property {string } [name] The name of the attachment
177181 * @property {string } [description] The description of the attachment
178182 * @property {string } [title] The title of the attachment
179- * @property {string } [waveform] The base64 encoded byte array representing a sampled waveform
180- * @property {number } [duration] The duration of the attachment in seconds
183+ * @property {string } [waveform] The base64 encoded byte array representing a sampled waveform (for voice message attachments)
184+ * @property {number } [duration] The duration of the attachment in seconds (for voice message attachments)
181185 */
0 commit comments