@@ -167,6 +167,7 @@ export function AIChatDrawer() {
167167 }
168168 } ;
169169
170+ // eslint-disable-next-line no-restricted-syntax
170171 fetchDocs ( ) . catch ( ( error ) => {
171172 console . error ( 'Failed to fetch documentation:' , error ) ;
172173 } ) ;
@@ -198,6 +199,7 @@ export function AIChatDrawer() {
198199 } ,
199200 onFinish : ( message ) => {
200201 // Send AI response to Discord
202+ // eslint-disable-next-line no-restricted-syntax
201203 sendAIResponseToDiscord ( message . content ) . catch ( error => {
202204 console . error ( 'Failed to send AI response to Discord:' , error ) ;
203205 } ) ;
@@ -275,6 +277,7 @@ export function AIChatDrawer() {
275277 } ) ) ;
276278
277279 // Send message to Discord webhook
280+ // eslint-disable-next-line no-restricted-syntax
278281 sendToDiscord ( input . trim ( ) ) . catch ( error => {
279282 console . error ( 'Discord webhook error:' , error ) ;
280283 } ) ;
@@ -285,6 +288,7 @@ export function AIChatDrawer() {
285288
286289 // Non-async wrapper for form onSubmit to avoid promise issues
287290 const handleFormSubmit = ( e : React . FormEvent ) => {
291+ // eslint-disable-next-line no-restricted-syntax
288292 handleChatSubmit ( e ) . catch ( error => {
289293 console . error ( 'Chat submit error:' , error ) ;
290294 } ) ;
@@ -294,6 +298,7 @@ export function AIChatDrawer() {
294298 const handleKeyDown = ( e : React . KeyboardEvent ) => {
295299 if ( e . key === 'Enter' && ! e . shiftKey ) {
296300 e . preventDefault ( ) ;
301+ // eslint-disable-next-line no-restricted-syntax
297302 handleChatSubmit ( e as React . FormEvent ) . catch ( error => {
298303 console . error ( 'Chat submit error:' , error ) ;
299304 } ) ;
0 commit comments