@penwin/discord-components-core 4.1.4 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/custom-elements.json +495 -378
  2. package/dist/bundle/index.mjs +782 -758
  3. package/dist/bundle/index.mjs.map +1 -1
  4. package/dist/components/_private/DiscordMediaLifecycle.js +3 -3
  5. package/dist/components/_private/DiscordMediaLifecycle.js.map +1 -1
  6. package/dist/components/discord-author-info/DiscordAuthorInfo.js +1 -1
  7. package/dist/components/discord-author-info/DiscordAuthorInfo.js.map +1 -1
  8. package/dist/components/discord-button/DiscordButton.d.ts +2 -1
  9. package/dist/components/discord-button/DiscordButton.d.ts.map +1 -1
  10. package/dist/components/discord-button/DiscordButton.js +19 -5
  11. package/dist/components/discord-button/DiscordButton.js.map +1 -1
  12. package/dist/components/discord-embed/DiscordEmbed.d.ts.map +1 -1
  13. package/dist/components/discord-embed/DiscordEmbed.js +1 -5
  14. package/dist/components/discord-embed/DiscordEmbed.js.map +1 -1
  15. package/dist/components/discord-media-fullscreen-previewer/DiscordMediaFullscreenPreviewer.d.ts +2 -2
  16. package/dist/components/discord-media-fullscreen-previewer/DiscordMediaFullscreenPreviewer.d.ts.map +1 -1
  17. package/dist/components/discord-media-fullscreen-previewer/DiscordMediaFullscreenPreviewer.js +3 -5
  18. package/dist/components/discord-media-fullscreen-previewer/DiscordMediaFullscreenPreviewer.js.map +1 -1
  19. package/dist/components/discord-media-gallery/DiscordMediaGallery.js +4 -4
  20. package/dist/components/discord-message/DiscordMessage.d.ts +3 -1
  21. package/dist/components/discord-message/DiscordMessage.d.ts.map +1 -1
  22. package/dist/components/discord-message/DiscordMessage.js +20 -3
  23. package/dist/components/discord-message/DiscordMessage.js.map +1 -1
  24. package/dist/components/discord-video-attachment/DiscordVideoAttachment.d.ts.map +1 -1
  25. package/dist/components/discord-video-attachment/DiscordVideoAttachment.js +16 -5
  26. package/dist/components/discord-video-attachment/DiscordVideoAttachment.js.map +1 -1
  27. package/dist/components/discord-voice-message/DiscordVoiceMessage.d.ts +6 -0
  28. package/dist/components/discord-voice-message/DiscordVoiceMessage.d.ts.map +1 -1
  29. package/dist/components/discord-voice-message/DiscordVoiceMessage.js +37 -4
  30. package/dist/components/discord-voice-message/DiscordVoiceMessage.js.map +1 -1
  31. package/dist/components/svgs/PremiumIcon.d.ts +2 -0
  32. package/dist/components/svgs/PremiumIcon.d.ts.map +1 -0
  33. package/dist/components/svgs/PremiumIcon.js +13 -0
  34. package/dist/components/svgs/PremiumIcon.js.map +1 -0
  35. package/package.json +3 -1
@@ -1963,7 +1963,7 @@
1963
1963
  "kind": "field",
1964
1964
  "name": "type",
1965
1965
  "type": {
1966
- "text": "'destructive' | 'primary' | 'secondary' | 'success'"
1966
+ "text": "'destructive' | 'premium' | 'primary' | 'secondary' | 'success'"
1967
1967
  },
1968
1968
  "privacy": "public",
1969
1969
  "default": "'secondary'",
@@ -1998,7 +1998,7 @@
1998
1998
  "name": "validButtonTypes",
1999
1999
  "privacy": "private",
2000
2000
  "readonly": true,
2001
- "default": "new Set(['primary', 'secondary', 'success', 'destructive'])"
2001
+ "default": "new Set(['primary', 'secondary', 'success', 'destructive', 'premium'])"
2002
2002
  },
2003
2003
  {
2004
2004
  "kind": "field",
@@ -2009,6 +2009,15 @@
2009
2009
  "privacy": "public",
2010
2010
  "default": "false"
2011
2011
  },
2012
+ {
2013
+ "kind": "field",
2014
+ "name": "isInForwardedMessage",
2015
+ "type": {
2016
+ "text": "boolean"
2017
+ },
2018
+ "privacy": "public",
2019
+ "default": "false"
2020
+ },
2012
2021
  {
2013
2022
  "kind": "method",
2014
2023
  "name": "checkType",
@@ -2063,7 +2072,7 @@
2063
2072
  {
2064
2073
  "name": "type",
2065
2074
  "type": {
2066
- "text": "'destructive' | 'primary' | 'secondary' | 'success'"
2075
+ "text": "'destructive' | 'premium' | 'primary' | 'secondary' | 'success'"
2067
2076
  },
2068
2077
  "default": "'secondary'",
2069
2078
  "description": "The type of button this is, this will change the color of the button.\r\nValid values: `primary`, `secondary`, `success`, `destructive`.",
@@ -5340,7 +5349,7 @@
5340
5349
  "kind": "field",
5341
5350
  "name": "timestamp",
5342
5351
  "type": {
5343
- "text": "DiscordTimestamp | undefined"
5352
+ "text": "string | undefined"
5344
5353
  },
5345
5354
  "privacy": "public"
5346
5355
  },
@@ -6187,6 +6196,15 @@
6187
6196
  "attribute": "ephemeral",
6188
6197
  "reflects": true
6189
6198
  },
6199
+ {
6200
+ "kind": "field",
6201
+ "name": "rawTimestamp",
6202
+ "type": {
6203
+ "text": "string"
6204
+ },
6205
+ "privacy": "public",
6206
+ "attribute": "raw-timestamp"
6207
+ },
6190
6208
  {
6191
6209
  "kind": "field",
6192
6210
  "name": "timestamp",
@@ -6293,6 +6311,17 @@
6293
6311
  },
6294
6312
  "privacy": "public"
6295
6313
  },
6314
+ {
6315
+ "kind": "field",
6316
+ "name": "isInForwardedMessage",
6317
+ "type": {
6318
+ "text": "boolean"
6319
+ },
6320
+ "privacy": "public",
6321
+ "default": "false",
6322
+ "attribute": "is-in-forwarded-message",
6323
+ "reflects": true
6324
+ },
6296
6325
  {
6297
6326
  "kind": "method",
6298
6327
  "name": "resolveAvatar",
@@ -6457,6 +6486,13 @@
6457
6486
  "description": "Whether to make this message ephemeral.",
6458
6487
  "fieldName": "ephemeral"
6459
6488
  },
6489
+ {
6490
+ "name": "raw-timestamp",
6491
+ "type": {
6492
+ "text": "string"
6493
+ },
6494
+ "fieldName": "rawTimestamp"
6495
+ },
6460
6496
  {
6461
6497
  "name": "timestamp",
6462
6498
  "type": {
@@ -6521,6 +6557,14 @@
6521
6557
  "text": "() => void"
6522
6558
  },
6523
6559
  "fieldName": "dismissMessageClicked"
6560
+ },
6561
+ {
6562
+ "name": "is-in-forwarded-message",
6563
+ "type": {
6564
+ "text": "boolean"
6565
+ },
6566
+ "default": "false",
6567
+ "fieldName": "isInForwardedMessage"
6524
6568
  }
6525
6569
  ],
6526
6570
  "superclass": {
@@ -8766,6 +8810,150 @@
8766
8810
  }
8767
8811
  ]
8768
8812
  },
8813
+ {
8814
+ "kind": "javascript-module",
8815
+ "path": "src/components/discord-system-message/DiscordSystemMessage.ts",
8816
+ "declarations": [
8817
+ {
8818
+ "kind": "class",
8819
+ "description": "",
8820
+ "name": "DiscordSystemMessage",
8821
+ "members": [
8822
+ {
8823
+ "kind": "field",
8824
+ "name": "timestamp",
8825
+ "type": {
8826
+ "text": "DiscordTimestamp"
8827
+ },
8828
+ "privacy": "public",
8829
+ "default": "new Date()",
8830
+ "description": "The timestamp to use for the message date.",
8831
+ "attribute": "timestamp"
8832
+ },
8833
+ {
8834
+ "kind": "field",
8835
+ "name": "type",
8836
+ "type": {
8837
+ "text": "'alert' | 'boost' | 'call' | 'edit' | 'error' | 'join' | 'leave' | 'missed-call' | 'pin' | 'thread' | 'upgrade'"
8838
+ },
8839
+ "privacy": "public",
8840
+ "default": "'join'",
8841
+ "description": "The type of system message this is, this will change the icon shown.\r\nValid values: `join`, `leave`, `call`, `missed-call`, `boost`, `edit`, `thread`, `pin`, `alert`, `upgrade` and `error`.",
8842
+ "attribute": "type",
8843
+ "reflects": true
8844
+ },
8845
+ {
8846
+ "kind": "field",
8847
+ "name": "channelName",
8848
+ "type": {
8849
+ "text": "boolean"
8850
+ },
8851
+ "privacy": "public",
8852
+ "default": "false",
8853
+ "description": "Whether this message is to show channel name changes, used to match Discord's style.",
8854
+ "attribute": "channel-name",
8855
+ "reflects": true
8856
+ },
8857
+ {
8858
+ "kind": "field",
8859
+ "name": "hasThread",
8860
+ "type": {
8861
+ "text": "boolean"
8862
+ },
8863
+ "privacy": "public",
8864
+ "default": "false",
8865
+ "attribute": "has-thread",
8866
+ "reflects": true
8867
+ },
8868
+ {
8869
+ "kind": "field",
8870
+ "name": "lightTheme",
8871
+ "type": {
8872
+ "text": "boolean"
8873
+ },
8874
+ "privacy": "public",
8875
+ "default": "false",
8876
+ "attribute": "light-theme",
8877
+ "reflects": true
8878
+ },
8879
+ {
8880
+ "kind": "method",
8881
+ "name": "checkType",
8882
+ "privacy": "public"
8883
+ }
8884
+ ],
8885
+ "attributes": [
8886
+ {
8887
+ "name": "timestamp",
8888
+ "type": {
8889
+ "text": "DiscordTimestamp"
8890
+ },
8891
+ "default": "new Date()",
8892
+ "description": "The timestamp to use for the message date.",
8893
+ "fieldName": "timestamp"
8894
+ },
8895
+ {
8896
+ "name": "type",
8897
+ "type": {
8898
+ "text": "'alert' | 'boost' | 'call' | 'edit' | 'error' | 'join' | 'leave' | 'missed-call' | 'pin' | 'thread' | 'upgrade'"
8899
+ },
8900
+ "default": "'join'",
8901
+ "description": "The type of system message this is, this will change the icon shown.\r\nValid values: `join`, `leave`, `call`, `missed-call`, `boost`, `edit`, `thread`, `pin`, `alert`, `upgrade` and `error`.",
8902
+ "fieldName": "type"
8903
+ },
8904
+ {
8905
+ "name": "channel-name",
8906
+ "type": {
8907
+ "text": "boolean"
8908
+ },
8909
+ "default": "false",
8910
+ "description": "Whether this message is to show channel name changes, used to match Discord's style.",
8911
+ "fieldName": "channelName"
8912
+ },
8913
+ {
8914
+ "name": "has-thread",
8915
+ "type": {
8916
+ "text": "boolean"
8917
+ },
8918
+ "default": "false",
8919
+ "fieldName": "hasThread"
8920
+ },
8921
+ {
8922
+ "name": "light-theme",
8923
+ "type": {
8924
+ "text": "boolean"
8925
+ },
8926
+ "default": "false",
8927
+ "fieldName": "lightTheme"
8928
+ }
8929
+ ],
8930
+ "superclass": {
8931
+ "name": "LitElement",
8932
+ "package": "lit"
8933
+ },
8934
+ "tagName": "discord-system-message",
8935
+ "customElement": true
8936
+ }
8937
+ ],
8938
+ "exports": [
8939
+ {
8940
+ "kind": "js",
8941
+ "name": "DiscordSystemMessage",
8942
+ "declaration": {
8943
+ "name": "DiscordSystemMessage",
8944
+ "module": "src/components/discord-system-message/DiscordSystemMessage.ts"
8945
+ }
8946
+ },
8947
+ {
8948
+ "kind": "custom-element-definition",
8949
+ "name": "discord-system-message",
8950
+ "declaration": {
8951
+ "name": "DiscordSystemMessage",
8952
+ "module": "src/components/discord-system-message/DiscordSystemMessage.ts"
8953
+ }
8954
+ }
8955
+ ]
8956
+ },
8769
8957
  {
8770
8958
  "kind": "javascript-module",
8771
8959
  "path": "src/components/discord-subscript/DiscordSubscript.ts",
@@ -8955,58 +9143,70 @@
8955
9143
  },
8956
9144
  {
8957
9145
  "kind": "javascript-module",
8958
- "path": "src/components/discord-system-message/DiscordSystemMessage.ts",
9146
+ "path": "src/components/discord-text-file-attachment-previewer/DiscordTextFileAttachmentPreviewer.ts",
8959
9147
  "declarations": [
8960
9148
  {
8961
9149
  "kind": "class",
8962
9150
  "description": "",
8963
- "name": "DiscordSystemMessage",
9151
+ "name": "DiscordTextFileAttachmentPreviewer",
8964
9152
  "members": [
8965
9153
  {
8966
9154
  "kind": "field",
8967
- "name": "timestamp",
9155
+ "name": "name",
8968
9156
  "type": {
8969
- "text": "DiscordTimestamp"
9157
+ "text": "string"
8970
9158
  },
8971
9159
  "privacy": "public",
8972
- "default": "new Date()",
8973
- "description": "The timestamp to use for the message date.",
8974
- "attribute": "timestamp"
9160
+ "description": "The name of the file",
9161
+ "attribute": "name"
8975
9162
  },
8976
9163
  {
8977
9164
  "kind": "field",
8978
- "name": "type",
9165
+ "name": "language",
8979
9166
  "type": {
8980
- "text": "'alert' | 'boost' | 'call' | 'edit' | 'error' | 'join' | 'leave' | 'missed-call' | 'pin' | 'thread' | 'upgrade'"
9167
+ "text": "string"
8981
9168
  },
8982
9169
  "privacy": "public",
8983
- "default": "'join'",
8984
- "description": "The type of system message this is, this will change the icon shown.\r\nValid values: `join`, `leave`, `call`, `missed-call`, `boost`, `edit`, `thread`, `pin`, `alert`, `upgrade` and `error`.",
8985
- "attribute": "type",
8986
- "reflects": true
9170
+ "attribute": "language"
8987
9171
  },
8988
9172
  {
8989
9173
  "kind": "field",
8990
- "name": "channelName",
9174
+ "name": "content",
8991
9175
  "type": {
8992
- "text": "boolean"
9176
+ "text": "string"
8993
9177
  },
8994
9178
  "privacy": "public",
8995
- "default": "false",
8996
- "description": "Whether this message is to show channel name changes, used to match Discord's style.",
8997
- "attribute": "channel-name",
8998
- "reflects": true
9179
+ "attribute": "content"
8999
9180
  },
9000
9181
  {
9001
9182
  "kind": "field",
9002
- "name": "hasThread",
9183
+ "name": "bytes",
9003
9184
  "type": {
9004
- "text": "boolean"
9185
+ "text": "number"
9005
9186
  },
9006
9187
  "privacy": "public",
9007
- "default": "false",
9008
- "attribute": "has-thread",
9009
- "reflects": true
9188
+ "description": "The size of the file in bytes",
9189
+ "attribute": "bytes"
9190
+ },
9191
+ {
9192
+ "kind": "field",
9193
+ "name": "bytesUnit",
9194
+ "type": {
9195
+ "text": "string"
9196
+ },
9197
+ "privacy": "public",
9198
+ "description": "The unit of the file in a human-readable format",
9199
+ "attribute": "bytes-unit"
9200
+ },
9201
+ {
9202
+ "kind": "field",
9203
+ "name": "href",
9204
+ "type": {
9205
+ "text": "string"
9206
+ },
9207
+ "privacy": "public",
9208
+ "description": "The URL to the file, this is passed to `<discord-link>`",
9209
+ "attribute": "href"
9010
9210
  },
9011
9211
  {
9012
9212
  "kind": "field",
@@ -9020,164 +9220,8 @@
9020
9220
  "reflects": true
9021
9221
  },
9022
9222
  {
9023
- "kind": "method",
9024
- "name": "checkType",
9025
- "privacy": "public"
9026
- }
9027
- ],
9028
- "attributes": [
9029
- {
9030
- "name": "timestamp",
9031
- "type": {
9032
- "text": "DiscordTimestamp"
9033
- },
9034
- "default": "new Date()",
9035
- "description": "The timestamp to use for the message date.",
9036
- "fieldName": "timestamp"
9037
- },
9038
- {
9039
- "name": "type",
9040
- "type": {
9041
- "text": "'alert' | 'boost' | 'call' | 'edit' | 'error' | 'join' | 'leave' | 'missed-call' | 'pin' | 'thread' | 'upgrade'"
9042
- },
9043
- "default": "'join'",
9044
- "description": "The type of system message this is, this will change the icon shown.\r\nValid values: `join`, `leave`, `call`, `missed-call`, `boost`, `edit`, `thread`, `pin`, `alert`, `upgrade` and `error`.",
9045
- "fieldName": "type"
9046
- },
9047
- {
9048
- "name": "channel-name",
9049
- "type": {
9050
- "text": "boolean"
9051
- },
9052
- "default": "false",
9053
- "description": "Whether this message is to show channel name changes, used to match Discord's style.",
9054
- "fieldName": "channelName"
9055
- },
9056
- {
9057
- "name": "has-thread",
9058
- "type": {
9059
- "text": "boolean"
9060
- },
9061
- "default": "false",
9062
- "fieldName": "hasThread"
9063
- },
9064
- {
9065
- "name": "light-theme",
9066
- "type": {
9067
- "text": "boolean"
9068
- },
9069
- "default": "false",
9070
- "fieldName": "lightTheme"
9071
- }
9072
- ],
9073
- "superclass": {
9074
- "name": "LitElement",
9075
- "package": "lit"
9076
- },
9077
- "tagName": "discord-system-message",
9078
- "customElement": true
9079
- }
9080
- ],
9081
- "exports": [
9082
- {
9083
- "kind": "js",
9084
- "name": "DiscordSystemMessage",
9085
- "declaration": {
9086
- "name": "DiscordSystemMessage",
9087
- "module": "src/components/discord-system-message/DiscordSystemMessage.ts"
9088
- }
9089
- },
9090
- {
9091
- "kind": "custom-element-definition",
9092
- "name": "discord-system-message",
9093
- "declaration": {
9094
- "name": "DiscordSystemMessage",
9095
- "module": "src/components/discord-system-message/DiscordSystemMessage.ts"
9096
- }
9097
- }
9098
- ]
9099
- },
9100
- {
9101
- "kind": "javascript-module",
9102
- "path": "src/components/discord-text-file-attachment-previewer/DiscordTextFileAttachmentPreviewer.ts",
9103
- "declarations": [
9104
- {
9105
- "kind": "class",
9106
- "description": "",
9107
- "name": "DiscordTextFileAttachmentPreviewer",
9108
- "members": [
9109
- {
9110
- "kind": "field",
9111
- "name": "name",
9112
- "type": {
9113
- "text": "string"
9114
- },
9115
- "privacy": "public",
9116
- "description": "The name of the file",
9117
- "attribute": "name"
9118
- },
9119
- {
9120
- "kind": "field",
9121
- "name": "language",
9122
- "type": {
9123
- "text": "string"
9124
- },
9125
- "privacy": "public",
9126
- "attribute": "language"
9127
- },
9128
- {
9129
- "kind": "field",
9130
- "name": "content",
9131
- "type": {
9132
- "text": "string"
9133
- },
9134
- "privacy": "public",
9135
- "attribute": "content"
9136
- },
9137
- {
9138
- "kind": "field",
9139
- "name": "bytes",
9140
- "type": {
9141
- "text": "number"
9142
- },
9143
- "privacy": "public",
9144
- "description": "The size of the file in bytes",
9145
- "attribute": "bytes"
9146
- },
9147
- {
9148
- "kind": "field",
9149
- "name": "bytesUnit",
9150
- "type": {
9151
- "text": "string"
9152
- },
9153
- "privacy": "public",
9154
- "description": "The unit of the file in a human-readable format",
9155
- "attribute": "bytes-unit"
9156
- },
9157
- {
9158
- "kind": "field",
9159
- "name": "href",
9160
- "type": {
9161
- "text": "string"
9162
- },
9163
- "privacy": "public",
9164
- "description": "The URL to the file, this is passed to `<discord-link>`",
9165
- "attribute": "href"
9166
- },
9167
- {
9168
- "kind": "field",
9169
- "name": "lightTheme",
9170
- "type": {
9171
- "text": "boolean"
9172
- },
9173
- "privacy": "public",
9174
- "default": "false",
9175
- "attribute": "light-theme",
9176
- "reflects": true
9177
- },
9178
- {
9179
- "kind": "field",
9180
- "name": "currentSearch",
9223
+ "kind": "field",
9224
+ "name": "currentSearch",
9181
9225
  "type": {
9182
9226
  "text": "string"
9183
9227
  },
@@ -9733,191 +9777,323 @@
9733
9777
  },
9734
9778
  {
9735
9779
  "kind": "javascript-module",
9736
- "path": "src/components/discord-transcript-header/DiscordTranscriptHeader.ts",
9780
+ "path": "src/components/discord-thumbnail/DiscordThumbnail.ts",
9737
9781
  "declarations": [
9738
9782
  {
9739
9783
  "kind": "class",
9740
9784
  "description": "",
9741
- "name": "DiscordTranscriptHeader",
9785
+ "name": "DiscordThumbnail",
9742
9786
  "members": [
9743
9787
  {
9744
9788
  "kind": "field",
9745
- "name": "guild",
9789
+ "name": "media",
9746
9790
  "type": {
9747
9791
  "text": "string"
9748
9792
  },
9749
9793
  "privacy": "public",
9750
- "description": "The guild name",
9751
- "attribute": "guild",
9752
- "reflects": true
9794
+ "attribute": "media"
9753
9795
  },
9754
9796
  {
9755
9797
  "kind": "field",
9756
- "name": "channel",
9798
+ "name": "description",
9757
9799
  "type": {
9758
9800
  "text": "string"
9759
9801
  },
9760
9802
  "privacy": "public",
9761
- "description": "The name of the channel",
9762
- "attribute": "channel",
9803
+ "attribute": "description"
9804
+ },
9805
+ {
9806
+ "kind": "field",
9807
+ "name": "spoiler",
9808
+ "type": {
9809
+ "text": "boolean"
9810
+ },
9811
+ "privacy": "public",
9812
+ "default": "false",
9813
+ "attribute": "spoiler",
9763
9814
  "reflects": true
9815
+ }
9816
+ ],
9817
+ "attributes": [
9818
+ {
9819
+ "name": "media",
9820
+ "type": {
9821
+ "text": "string"
9822
+ },
9823
+ "fieldName": "media"
9824
+ },
9825
+ {
9826
+ "name": "description",
9827
+ "type": {
9828
+ "text": "string"
9829
+ },
9830
+ "fieldName": "description"
9764
9831
  },
9832
+ {
9833
+ "name": "spoiler",
9834
+ "type": {
9835
+ "text": "boolean"
9836
+ },
9837
+ "default": "false",
9838
+ "fieldName": "spoiler"
9839
+ }
9840
+ ],
9841
+ "superclass": {
9842
+ "name": "LitElement",
9843
+ "package": "lit"
9844
+ },
9845
+ "tagName": "discord-thumbnail",
9846
+ "customElement": true
9847
+ }
9848
+ ],
9849
+ "exports": [
9850
+ {
9851
+ "kind": "js",
9852
+ "name": "DiscordThumbnail",
9853
+ "declaration": {
9854
+ "name": "DiscordThumbnail",
9855
+ "module": "src/components/discord-thumbnail/DiscordThumbnail.ts"
9856
+ }
9857
+ },
9858
+ {
9859
+ "kind": "custom-element-definition",
9860
+ "name": "discord-thumbnail",
9861
+ "declaration": {
9862
+ "name": "DiscordThumbnail",
9863
+ "module": "src/components/discord-thumbnail/DiscordThumbnail.ts"
9864
+ }
9865
+ }
9866
+ ]
9867
+ },
9868
+ {
9869
+ "kind": "javascript-module",
9870
+ "path": "src/components/discord-time/DiscordTime.ts",
9871
+ "declarations": [
9872
+ {
9873
+ "kind": "class",
9874
+ "description": "",
9875
+ "name": "DiscordTime",
9876
+ "members": [
9765
9877
  {
9766
9878
  "kind": "field",
9767
- "name": "icon",
9879
+ "name": "timestamp",
9768
9880
  "type": {
9769
- "text": "string | undefined"
9881
+ "text": "number"
9770
9882
  },
9771
9883
  "privacy": "public",
9772
- "description": "The icon to display.",
9773
- "attribute": "icon",
9884
+ "attribute": "timestamp",
9774
9885
  "reflects": true
9775
9886
  },
9887
+ {
9888
+ "kind": "field",
9889
+ "name": "baseNow",
9890
+ "type": {
9891
+ "text": "number | undefined"
9892
+ },
9893
+ "privacy": "public",
9894
+ "attribute": "baseNow",
9895
+ "reflects": true
9896
+ },
9897
+ {
9898
+ "kind": "field",
9899
+ "name": "format",
9900
+ "type": {
9901
+ "text": "keyof typeof DATE_TYPE_FORMATS"
9902
+ },
9903
+ "privacy": "public",
9904
+ "default": "'t'",
9905
+ "attribute": "format",
9906
+ "reflects": true
9907
+ },
9908
+ {
9909
+ "kind": "field",
9910
+ "name": "timeout",
9911
+ "type": {
9912
+ "text": "number | undefined"
9913
+ },
9914
+ "privacy": "private"
9915
+ },
9916
+ {
9917
+ "kind": "field",
9918
+ "name": "resultTime",
9919
+ "type": {
9920
+ "text": "string | undefined"
9921
+ },
9922
+ "privacy": "private"
9923
+ },
9776
9924
  {
9777
9925
  "kind": "method",
9778
- "name": "getLettersName",
9779
- "privacy": "public"
9926
+ "name": "parseTime",
9927
+ "privacy": "private",
9928
+ "description": "Generates a string for the time."
9929
+ },
9930
+ {
9931
+ "kind": "method",
9932
+ "name": "getRelativeTime",
9933
+ "privacy": "private",
9934
+ "return": {
9935
+ "type": {
9936
+ "text": "[string, number]"
9937
+ }
9938
+ },
9939
+ "parameters": [
9940
+ {
9941
+ "name": "timestamp",
9942
+ "type": {
9943
+ "text": "number"
9944
+ }
9945
+ }
9946
+ ]
9780
9947
  }
9781
9948
  ],
9782
9949
  "attributes": [
9783
9950
  {
9784
- "name": "guild",
9951
+ "name": "timestamp",
9785
9952
  "type": {
9786
- "text": "string"
9953
+ "text": "number"
9787
9954
  },
9788
- "description": "The guild name",
9789
- "fieldName": "guild"
9955
+ "fieldName": "timestamp"
9790
9956
  },
9791
9957
  {
9792
- "name": "channel",
9958
+ "name": "baseNow",
9793
9959
  "type": {
9794
- "text": "string"
9960
+ "text": "number | undefined"
9795
9961
  },
9796
- "description": "The name of the channel",
9797
- "fieldName": "channel"
9962
+ "fieldName": "baseNow"
9798
9963
  },
9799
9964
  {
9800
- "name": "icon",
9965
+ "name": "format",
9801
9966
  "type": {
9802
- "text": "string | undefined"
9967
+ "text": "keyof typeof DATE_TYPE_FORMATS"
9803
9968
  },
9804
- "description": "The icon to display.",
9805
- "fieldName": "icon"
9969
+ "default": "'t'",
9970
+ "fieldName": "format"
9806
9971
  }
9807
9972
  ],
9808
9973
  "superclass": {
9809
9974
  "name": "LitElement",
9810
9975
  "package": "lit"
9811
9976
  },
9812
- "tagName": "discord-transcript-header",
9977
+ "tagName": "discord-time",
9813
9978
  "customElement": true
9814
9979
  }
9815
9980
  ],
9816
9981
  "exports": [
9817
9982
  {
9818
9983
  "kind": "js",
9819
- "name": "DiscordTranscriptHeader",
9984
+ "name": "DiscordTime",
9820
9985
  "declaration": {
9821
- "name": "DiscordTranscriptHeader",
9822
- "module": "src/components/discord-transcript-header/DiscordTranscriptHeader.ts"
9986
+ "name": "DiscordTime",
9987
+ "module": "src/components/discord-time/DiscordTime.ts"
9823
9988
  }
9824
9989
  },
9825
9990
  {
9826
9991
  "kind": "custom-element-definition",
9827
- "name": "discord-transcript-header",
9992
+ "name": "discord-time",
9828
9993
  "declaration": {
9829
- "name": "DiscordTranscriptHeader",
9830
- "module": "src/components/discord-transcript-header/DiscordTranscriptHeader.ts"
9994
+ "name": "DiscordTime",
9995
+ "module": "src/components/discord-time/DiscordTime.ts"
9831
9996
  }
9832
9997
  }
9833
9998
  ]
9834
9999
  },
9835
10000
  {
9836
10001
  "kind": "javascript-module",
9837
- "path": "src/components/discord-thumbnail/DiscordThumbnail.ts",
10002
+ "path": "src/components/discord-transcript-header/DiscordTranscriptHeader.ts",
9838
10003
  "declarations": [
9839
10004
  {
9840
10005
  "kind": "class",
9841
10006
  "description": "",
9842
- "name": "DiscordThumbnail",
10007
+ "name": "DiscordTranscriptHeader",
9843
10008
  "members": [
9844
10009
  {
9845
10010
  "kind": "field",
9846
- "name": "media",
10011
+ "name": "guild",
9847
10012
  "type": {
9848
10013
  "text": "string"
9849
10014
  },
9850
10015
  "privacy": "public",
9851
- "attribute": "media"
10016
+ "description": "The guild name",
10017
+ "attribute": "guild",
10018
+ "reflects": true
9852
10019
  },
9853
10020
  {
9854
10021
  "kind": "field",
9855
- "name": "description",
10022
+ "name": "channel",
9856
10023
  "type": {
9857
10024
  "text": "string"
9858
10025
  },
9859
10026
  "privacy": "public",
9860
- "attribute": "description"
10027
+ "description": "The name of the channel",
10028
+ "attribute": "channel",
10029
+ "reflects": true
9861
10030
  },
9862
10031
  {
9863
10032
  "kind": "field",
9864
- "name": "spoiler",
10033
+ "name": "icon",
9865
10034
  "type": {
9866
- "text": "boolean"
10035
+ "text": "string | undefined"
9867
10036
  },
9868
10037
  "privacy": "public",
9869
- "default": "false",
9870
- "attribute": "spoiler",
10038
+ "description": "The icon to display.",
10039
+ "attribute": "icon",
9871
10040
  "reflects": true
10041
+ },
10042
+ {
10043
+ "kind": "method",
10044
+ "name": "getLettersName",
10045
+ "privacy": "public"
9872
10046
  }
9873
10047
  ],
9874
10048
  "attributes": [
9875
10049
  {
9876
- "name": "media",
10050
+ "name": "guild",
9877
10051
  "type": {
9878
10052
  "text": "string"
9879
10053
  },
9880
- "fieldName": "media"
10054
+ "description": "The guild name",
10055
+ "fieldName": "guild"
9881
10056
  },
9882
10057
  {
9883
- "name": "description",
10058
+ "name": "channel",
9884
10059
  "type": {
9885
10060
  "text": "string"
9886
10061
  },
9887
- "fieldName": "description"
10062
+ "description": "The name of the channel",
10063
+ "fieldName": "channel"
9888
10064
  },
9889
10065
  {
9890
- "name": "spoiler",
10066
+ "name": "icon",
9891
10067
  "type": {
9892
- "text": "boolean"
10068
+ "text": "string | undefined"
9893
10069
  },
9894
- "default": "false",
9895
- "fieldName": "spoiler"
10070
+ "description": "The icon to display.",
10071
+ "fieldName": "icon"
9896
10072
  }
9897
10073
  ],
9898
10074
  "superclass": {
9899
10075
  "name": "LitElement",
9900
10076
  "package": "lit"
9901
10077
  },
9902
- "tagName": "discord-thumbnail",
10078
+ "tagName": "discord-transcript-header",
9903
10079
  "customElement": true
9904
10080
  }
9905
10081
  ],
9906
10082
  "exports": [
9907
10083
  {
9908
10084
  "kind": "js",
9909
- "name": "DiscordThumbnail",
10085
+ "name": "DiscordTranscriptHeader",
9910
10086
  "declaration": {
9911
- "name": "DiscordThumbnail",
9912
- "module": "src/components/discord-thumbnail/DiscordThumbnail.ts"
10087
+ "name": "DiscordTranscriptHeader",
10088
+ "module": "src/components/discord-transcript-header/DiscordTranscriptHeader.ts"
9913
10089
  }
9914
10090
  },
9915
10091
  {
9916
10092
  "kind": "custom-element-definition",
9917
- "name": "discord-thumbnail",
10093
+ "name": "discord-transcript-header",
9918
10094
  "declaration": {
9919
- "name": "DiscordThumbnail",
9920
- "module": "src/components/discord-thumbnail/DiscordThumbnail.ts"
10095
+ "name": "DiscordTranscriptHeader",
10096
+ "module": "src/components/discord-transcript-header/DiscordTranscriptHeader.ts"
9921
10097
  }
9922
10098
  }
9923
10099
  ]
@@ -10103,138 +10279,6 @@
10103
10279
  }
10104
10280
  ]
10105
10281
  },
10106
- {
10107
- "kind": "javascript-module",
10108
- "path": "src/components/discord-time/DiscordTime.ts",
10109
- "declarations": [
10110
- {
10111
- "kind": "class",
10112
- "description": "",
10113
- "name": "DiscordTime",
10114
- "members": [
10115
- {
10116
- "kind": "field",
10117
- "name": "timestamp",
10118
- "type": {
10119
- "text": "number"
10120
- },
10121
- "privacy": "public",
10122
- "attribute": "timestamp",
10123
- "reflects": true
10124
- },
10125
- {
10126
- "kind": "field",
10127
- "name": "baseNow",
10128
- "type": {
10129
- "text": "number | undefined"
10130
- },
10131
- "privacy": "public",
10132
- "attribute": "baseNow",
10133
- "reflects": true
10134
- },
10135
- {
10136
- "kind": "field",
10137
- "name": "format",
10138
- "type": {
10139
- "text": "keyof typeof DATE_TYPE_FORMATS"
10140
- },
10141
- "privacy": "public",
10142
- "default": "'t'",
10143
- "attribute": "format",
10144
- "reflects": true
10145
- },
10146
- {
10147
- "kind": "field",
10148
- "name": "timeout",
10149
- "type": {
10150
- "text": "number | undefined"
10151
- },
10152
- "privacy": "private"
10153
- },
10154
- {
10155
- "kind": "field",
10156
- "name": "resultTime",
10157
- "type": {
10158
- "text": "string | undefined"
10159
- },
10160
- "privacy": "private"
10161
- },
10162
- {
10163
- "kind": "method",
10164
- "name": "parseTime",
10165
- "privacy": "private",
10166
- "description": "Generates a string for the time."
10167
- },
10168
- {
10169
- "kind": "method",
10170
- "name": "getRelativeTime",
10171
- "privacy": "private",
10172
- "return": {
10173
- "type": {
10174
- "text": "[string, number]"
10175
- }
10176
- },
10177
- "parameters": [
10178
- {
10179
- "name": "timestamp",
10180
- "type": {
10181
- "text": "number"
10182
- }
10183
- }
10184
- ]
10185
- }
10186
- ],
10187
- "attributes": [
10188
- {
10189
- "name": "timestamp",
10190
- "type": {
10191
- "text": "number"
10192
- },
10193
- "fieldName": "timestamp"
10194
- },
10195
- {
10196
- "name": "baseNow",
10197
- "type": {
10198
- "text": "number | undefined"
10199
- },
10200
- "fieldName": "baseNow"
10201
- },
10202
- {
10203
- "name": "format",
10204
- "type": {
10205
- "text": "keyof typeof DATE_TYPE_FORMATS"
10206
- },
10207
- "default": "'t'",
10208
- "fieldName": "format"
10209
- }
10210
- ],
10211
- "superclass": {
10212
- "name": "LitElement",
10213
- "package": "lit"
10214
- },
10215
- "tagName": "discord-time",
10216
- "customElement": true
10217
- }
10218
- ],
10219
- "exports": [
10220
- {
10221
- "kind": "js",
10222
- "name": "DiscordTime",
10223
- "declaration": {
10224
- "name": "DiscordTime",
10225
- "module": "src/components/discord-time/DiscordTime.ts"
10226
- }
10227
- },
10228
- {
10229
- "kind": "custom-element-definition",
10230
- "name": "discord-time",
10231
- "declaration": {
10232
- "name": "DiscordTime",
10233
- "module": "src/components/discord-time/DiscordTime.ts"
10234
- }
10235
- }
10236
- ]
10237
- },
10238
10282
  {
10239
10283
  "kind": "javascript-module",
10240
10284
  "path": "src/components/discord-video-attachment/DiscordVideoAttachment.ts",
@@ -10867,7 +10911,7 @@
10867
10911
  "privacy": "private",
10868
10912
  "parameters": [
10869
10913
  {
10870
- "name": "duration",
10914
+ "name": "durationSecs",
10871
10915
  "optional": true,
10872
10916
  "type": {
10873
10917
  "text": "number"
@@ -10875,6 +10919,42 @@
10875
10919
  }
10876
10920
  ]
10877
10921
  },
10922
+ {
10923
+ "kind": "method",
10924
+ "name": "createBufferFromBase64",
10925
+ "privacy": "private",
10926
+ "parameters": [
10927
+ {
10928
+ "name": "base64",
10929
+ "type": {
10930
+ "text": "string"
10931
+ }
10932
+ }
10933
+ ]
10934
+ },
10935
+ {
10936
+ "kind": "method",
10937
+ "name": "createPeaksFromRawDiscordWaveform",
10938
+ "privacy": "private",
10939
+ "parameters": [
10940
+ {
10941
+ "name": "base64",
10942
+ "type": {
10943
+ "text": "string"
10944
+ }
10945
+ }
10946
+ ]
10947
+ },
10948
+ {
10949
+ "kind": "field",
10950
+ "name": "waveform",
10951
+ "type": {
10952
+ "text": "string | undefined"
10953
+ },
10954
+ "privacy": "public",
10955
+ "description": "raw discord Base64 encoded bytearray representing a sampled waveform",
10956
+ "attribute": "waveform"
10957
+ },
10878
10958
  {
10879
10959
  "kind": "field",
10880
10960
  "name": "speeds",
@@ -11350,6 +11430,14 @@
11350
11430
  },
11351
11431
  "fieldName": "duration"
11352
11432
  },
11433
+ {
11434
+ "name": "waveform",
11435
+ "type": {
11436
+ "text": "string | undefined"
11437
+ },
11438
+ "description": "raw discord Base64 encoded bytearray representing a sampled waveform",
11439
+ "fieldName": "waveform"
11440
+ },
11353
11441
  {
11354
11442
  "name": "speed",
11355
11443
  "type": {
@@ -12369,6 +12457,35 @@
12369
12457
  }
12370
12458
  ]
12371
12459
  },
12460
+ {
12461
+ "kind": "javascript-module",
12462
+ "path": "src/components/svgs/PremiumIcon.ts",
12463
+ "declarations": [
12464
+ {
12465
+ "kind": "function",
12466
+ "name": "PremiumIcon",
12467
+ "parameters": [
12468
+ {
12469
+ "name": "props",
12470
+ "default": "{}",
12471
+ "type": {
12472
+ "text": "Record<string, unknown>"
12473
+ }
12474
+ }
12475
+ ]
12476
+ }
12477
+ ],
12478
+ "exports": [
12479
+ {
12480
+ "kind": "js",
12481
+ "name": "default",
12482
+ "declaration": {
12483
+ "name": "PremiumIcon",
12484
+ "module": "src/components/svgs/PremiumIcon.ts"
12485
+ }
12486
+ }
12487
+ ]
12488
+ },
12372
12489
  {
12373
12490
  "kind": "javascript-module",
12374
12491
  "path": "src/components/svgs/ReplyIcon.ts",