File tree Expand file tree Collapse file tree
app/services/discord/modules Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -230,13 +230,7 @@ export default (bot: DiscordBot): void => {
230230 if ( entry . target && entry . targetId ) {
231231 const targetString =
232232 entry . target . toString ( ) !== "[object Object]" ? entry . target . toString ( ) : "" ;
233- const targetObject = "```ansi\n" + format ( entry . target , { depth : 0 , colors : true } ) ;
234- embed . addFields (
235- f (
236- `${ entry . targetType } (${ entry . targetId } )` ,
237- `${ targetString } \n${ trimfield ( targetObject , 1023 - targetString . length , true ) } `
238- )
239- ) ;
233+ embed . addFields ( f ( `${ entry . targetType } (${ entry . targetId } )` , targetString ) ) ;
240234 }
241235
242236 if ( entry . reason ) embed . addFields ( f ( "Reason" , entry . reason ) ) ;
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ export const getOrFetchGmodFile = async (path: PathLike) => {
159159 }` ,
160160 { owner, repo }
161161 ) ;
162- if ( request . data . repository ? .object ?. text ) {
162+ if ( request . data ? .repository . object ?. text ) {
163163 filecontent = request . data . repository . object . text ;
164164 } else {
165165 baseLogger . warn ( request , "unexpected Github GraphQL response" ) ;
You can’t perform that action at this time.
0 commit comments