3
3
< head >
4
4
< meta charset ="utf-8 " />
5
5
< meta name ="viewport " content ="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0 " />
6
- < title > Discord Components Core</ title >
7
- < style >
8
- @font-face {
9
- font-family : 'Whitney' ;
10
- src : url ('https://cdn.skyra.pw/whitney-font/v2/Book.woff' ) format ('woff' );
11
- font-weight : 400 ;
12
- }
13
-
14
- @font-face {
15
- font-family : 'Whitney' ;
16
- src : url ('https://cdn.skyra.pw/whitney-font/v2/Medium.woff' ) format ('woff' );
17
- font-weight : 500 ;
18
- }
19
-
20
- @font-face {
21
- font-family : 'Whitney' ;
22
- src : url ('https://cdn.skyra.pw/whitney-font/v2/Semibold.woff' ) format ('woff' );
23
- font-weight : 600 ;
24
- }
25
-
26
- @font-face {
27
- font-family : 'Whitney' ;
28
- src : url ('https://cdn.skyra.pw/whitney-font/v2/Bold.woff' ) format ('woff' );
29
- font-weight : 700 ;
30
- }
31
-
32
- body {
33
- color : # eee ;
34
- background-color : # 2a2a2a ;
35
- font-family : Arial, Helvetica, sans-serif;
36
- }
37
-
38
- .logo {
39
- display : inline-block;
40
- font-weight : bold;
41
- font-size : 2em ;
42
- margin : 0 ;
43
- }
44
-
45
- .title {
46
- border-bottom : 1px solid # 4a4a4a ;
47
- padding-bottom : 0.25em ;
48
- }
49
- </ style >
50
- < script >
51
- window . $discordMessage = {
52
- profiles : {
53
- maximillian : {
54
- author : 'Maximillian Osborn' ,
55
- avatar : 'https://raw.githubusercontent.com/skyra-project/discord-components-implementations/main/shared/public/avaone.png' ,
56
- roleColor : '#f9d61b'
57
- } ,
58
- willard : {
59
- author : 'Willard Walton' ,
60
- avatar : 'https://raw.githubusercontent.com/skyra-project/discord-components-implementations/main/shared/public/avatwo.png' ,
61
- roleColor : '#ffb12f'
62
- } ,
63
- skyra : {
64
- author : 'Skyra' ,
65
- avatar : 'https://github.com/NM-EEA-Y.png' ,
66
- roleColor : '#1e88e5' ,
67
- bot : true ,
68
- verified : true
69
- } ,
70
- favna : {
71
- author : 'Favna' ,
72
- avatar : 'https://github.com/favna.png' ,
73
- roleColor : '#a155ab' ,
74
- roleIcon : 'https://raw.githubusercontent.com/skyra-project/discord-components-implementations/main/shared/public/booster.png' ,
75
- roleName : 'Booster'
76
- } ,
77
- discordjs : {
78
- author : 'Discord.js Official #announcements' ,
79
- avatar : 'https://raw.githubusercontent.com/skyra-project/discord-components-implementations/main/shared/public/discordjs.png' ,
80
- roleColor : '#ffffff' ,
81
- server : true
82
- }
83
- } ,
84
- emojis : {
85
- diamond : {
86
- name : 'diamond' ,
87
- url : 'https://raw.githubusercontent.com/skyra-project/discord-components-implementations/main/shared/public/diamond.png'
88
- } ,
89
- dragonite : {
90
- name : 'dragonite' ,
91
- url : 'https://raw.githubusercontent.com/skyra-project/discord-components-implementations/main/shared/public/dragonite.png'
92
- } ,
93
- sapphire : {
94
- name : 'sapphire' ,
95
- url : 'https://raw.githubusercontent.com/skyra-project/discord-components-implementations/main/shared/public/sapphire.png'
96
- }
97
- }
98
- } ;
99
- </ script >
6
+ < meta name ="description " content ="Sample for Discord Components using no particular framework " />
7
+ < title > No Framework Sample</ title >
8
+ < link rel ="stylesheet " href ="./index.css " />
9
+ < script src ="./index.js "> </ script >
100
10
< script async type ="module ">
101
11
import '../src/index.ts' ;
102
12
</ script >
@@ -265,10 +175,7 @@ <h3 class="title">Custom Discord Emojis</h3>
265
175
name ="blobparty "
266
176
url ="https://raw.githubusercontent.com/skyra-project/discord-components-implementations/main/shared/public/blobparty.gif "
267
177
> </ discord-custom-emoji >
268
- < discord-custom-emoji
269
- name ="skyra "
270
- url ="https://raw.githubusercontent.com/skyra-project/discord-components-implementations/main/shared/public/skyra.png "
271
- > </ discord-custom-emoji >
178
+ < discord-custom-emoji name ="skyra " url ="https://github.com/NM-EEA-Y.png "> </ discord-custom-emoji >
272
179
< discord-embed slot ="embeds " color ="#0F52BA " embed-title ="diamond Emojis in the embed title ">
273
180
< discord-embed-description slot ="description ">
274
181
Custom emojis in the embed description:
@@ -299,15 +206,15 @@ <h3 class="title">Server Invites</h3>
299
206
url ="https://discord.gg/djs "
300
207
online ="16417 "
301
208
members ="87147 "
302
- verified =" true "
209
+ verified
303
210
> </ discord-invite >
304
211
< discord-invite
305
212
name ="The Coding Den "
306
213
icon ="https://raw.githubusercontent.com/skyra-project/discord-components-implementations/main/shared/public/tcd.png "
307
214
url ="https://discord.gg/code "
308
215
online ="18456 "
309
216
members ="73548 "
310
- partnered =" true "
217
+ partnered
311
218
> </ discord-invite >
312
219
< discord-invite
313
220
name ="Skyra Lounge "
@@ -321,7 +228,7 @@ <h3 class="title">Server Invites</h3>
321
228
</ discord-messages >
322
229
< h3 class ="title "> Image Attachments with small images</ h3 >
323
230
< discord-messages >
324
- < discord-message profile =" Alyx Vargas " >
231
+ < discord-message >
325
232
That's a very small logo image!
326
233
< discord-image-attachment
327
234
slot ="attachments "
@@ -462,7 +369,7 @@ <h3 class="title">Reactions</h3>
462
369
reacted
463
370
> </ discord-reaction >
464
371
< discord-reaction
465
- interactive =" true "
372
+ interactive
466
373
name ="dragonite "
467
374
emoji ="https://raw.githubusercontent.com/skyra-project/discord-components-implementations/main/shared/public/dragonite.png "
468
375
count ="10 "
@@ -583,7 +490,7 @@ <h3 class="title">Full embed example</h3>
583
490
</ discord-embed-description >
584
491
< discord-embed-fields slot ="fields ">
585
492
< discord-embed-field field-title ="Created "> < discord-time > 1 year ago</ discord-time > </ discord-embed-field >
586
- < discord-embed-field field-title ="Installation "> yarn add @ sapphire/framework </ discord-embed-field >
493
+ < discord-embed-field field-title ="Installation "> yarn add @ sapphire/framework </ discord-embed-field >
587
494
< discord-embed-field field-title ="Key Features ">
588
495
< ul style ="padding-inline-start: 20px; margin-block-start: 0.5em ">
589
496
< li >
@@ -656,13 +563,13 @@ <h3 class="title">Embedded video</h3>
656
563
< discord-message profile ="skyra ">
657
564
< discord-embed
658
565
slot ="embeds "
659
- provider ="Blender "
660
- author-name ="Blender "
661
- author-url ="https://peach.blender .org/download / "
566
+ provider ="MDN "
567
+ author-name ="MDN "
568
+ author-url ="https://developer.mozilla .org/en-US / "
662
569
color ="#019DD8 "
663
- embed-title ="Big Buck Bunny "
664
- video ="https://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_1080p_stereo.ogg "
665
- url ="https://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_1080p_stereo.ogg "
570
+ embed-title ="Flower blooming "
571
+ video ="https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.webm "
572
+ url ="https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.webm "
666
573
>
667
574
</ discord-embed >
668
575
</ discord-message >
0 commit comments