File tree Expand file tree Collapse file tree
services/backend-api/client/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -159,11 +159,7 @@ const EmbedFooter = ({
159159 timestamp,
160160 text,
161161 icon_url,
162- } : {
163- timestamp ?: string | null ;
164- text ?: string | null ;
165- icon_url ?: string | null ;
166- } ) => {
162+ } : Exclude < DiscordViewEmbed [ "footer" ] , undefined | null > ) => {
167163 if ( ! text && ! timestamp ) {
168164 return null ;
169165 }
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ const convertLegacyEmbedPreviewerComponentToEmbed = (embedComponent: LegacyEmbed
115115 embed . author = {
116116 name : subComponent . authorName || null ,
117117 url : subComponent . authorUrl || null ,
118- icon_url : subComponent . authorIconUrl || null ,
118+ iconUrl : subComponent . authorIconUrl || null ,
119119 } ;
120120 } else if ( subComponent . type === ComponentType . LegacyEmbedTitle ) {
121121 embed . title = subComponent . title || null ;
@@ -133,7 +133,7 @@ const convertLegacyEmbedPreviewerComponentToEmbed = (embedComponent: LegacyEmbed
133133 } else if ( subComponent . type === ComponentType . LegacyEmbedFooter ) {
134134 embed . footer = {
135135 text : subComponent . footerText || null ,
136- icon_url : subComponent . footerIconUrl || null ,
136+ iconUrl : subComponent . footerIconUrl || null ,
137137 } ;
138138 } else if ( subComponent . type === ComponentType . LegacyEmbedField ) {
139139 if ( ! embed . fields ) {
Original file line number Diff line number Diff line change @@ -7,15 +7,15 @@ export interface PreviewEmbedInput {
77 footer ?: {
88 timestamp ?: string | null ;
99 text ?: string | null ;
10- icon_url ?: string | null ;
10+ iconUrl ?: string | null ;
1111 } | null ;
1212 thumbnail ?: {
1313 url ?: string | null ;
1414 } | null ;
1515 author ?: {
1616 name ?: string | null ;
1717 url ?: string | null ;
18- icon_url ?: string | null ;
18+ iconUrl ?: string | null ;
1919 } | null ;
2020 fields ?: Array < {
2121 name ?: string | null ;
You can’t perform that action at this time.
0 commit comments