File tree Expand file tree Collapse file tree 4 files changed +1769
-1770
lines changed
Expand file tree Collapse file tree 4 files changed +1769
-1770
lines changed Original file line number Diff line number Diff line change @@ -224,17 +224,14 @@ async function avatar(
224224 files = Array . from ( new Set ( files . map ( ( f ) => f . name ) ) ) . map (
225225 ( name ) => files . find ( ( f ) => f . name === name ) !
226226 ) ;
227- console . log ( avatarURL ) ;
228227 }
229228 if ( ! avatarURL || ! verifyAvatarUrl ( avatarURL ) )
230229 return await reply ( interaction , {
231230 embeds : [ embedError ( ul ( "error.avatar.url" ) , ul ) ] ,
232231 } ) ;
233232 const embed = getEmbeds ( message , "user" ) ;
234- if ( ! embed ) {
235- // noinspection ExceptionCaughtLocallyJS
236- throw new Error ( ul ( "error.embed.notFound" ) ) ;
237- }
233+ if ( ! embed ) throw new Error ( ul ( "error.embed.notFound" ) ) ;
234+
238235 embed . setThumbnail ( avatarURL ) ;
239236
240237 const embedsList = getEmbedsList ( { embed, which : "user" } , message ) ;
Original file line number Diff line number Diff line change @@ -652,7 +652,7 @@ export async function cancelDiceAddModeration(
652652
653653 await interaction . message . delete ( ) ;
654654 await reply ( interaction , {
655- content : ul ( "modals.cancelled " ) ,
655+ content : ul ( "modals.cancelled_moderator " ) ,
656656 flags : Djs . MessageFlags . Ephemeral ,
657657 } ) ;
658658 //send a message to the user that the edition has been cancelled
You can’t perform that action at this time.
0 commit comments