From 66f08bf538d97288be6a1b0c7af0d162eaa00bae Mon Sep 17 00:00:00 2001 From: "Ean Milligan (Bastion)" Date: Sun, 19 Jun 2022 03:56:04 -0400 Subject: [PATCH] deno fmt --- src/endpoints/_index.ts | 2 +- src/endpoints/gets/apiRoll.ts | 20 ++++++++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/endpoints/_index.ts b/src/endpoints/_index.ts index bbb7ab7..8fc0bcf 100644 --- a/src/endpoints/_index.ts +++ b/src/endpoints/_index.ts @@ -10,7 +10,7 @@ import { apiChannelManageActive } from './puts/apiChannelManageActive.ts'; export default { delete: { - apiKeyDelete + apiKeyDelete, }, get: { apiKey, diff --git a/src/endpoints/gets/apiRoll.ts b/src/endpoints/gets/apiRoll.ts index 2aaac62..0e219c7 100644 --- a/src/endpoints/gets/apiRoll.ts +++ b/src/endpoints/gets/apiRoll.ts @@ -180,12 +180,14 @@ export const apiRoll = async (requestEvent: Deno.RequestEvent, query: Map 8388290) { // Update return text - newMessage.content = `${apiPrefix}<@${query.get('user') - }>${returnmsg.line1}\n${returnmsg.line2}\nDetails have been ommitted from this message for being over 2000 characters. Full details could not be attached to this messaged as a \`.txt\` file as the file would be too large for Discord to handle. If you would like to see the details of rolls, please send the rolls in multiple messages instead of bundled into one.`; + newMessage.content = `${apiPrefix}<@${ + query.get('user') + }>${returnmsg.line1}\n${returnmsg.line2}\nDetails have been ommitted from this message for being over 2000 characters. Full details could not be attached to this messaged as a \`.txt\` file as the file would be too large for Discord to handle. If you would like to see the details of rolls, please send the rolls in multiple messages instead of bundled into one.`; } else { // Update return text - newMessage.content = `${apiPrefix}<@${query.get('user') - }>${returnmsg.line1}\n${returnmsg.line2}\nFull details have been attached to this messaged as a \`.txt\` file for verification purposes.`; + newMessage.content = `${apiPrefix}<@${ + query.get('user') + }>${returnmsg.line1}\n${returnmsg.line2}\nFull details have been attached to this messaged as a \`.txt\` file for verification purposes.`; newMessage.file = { 'blob': b, 'name': 'rollDetails.txt' }; } @@ -234,12 +236,14 @@ export const apiRoll = async (requestEvent: Deno.RequestEvent, query: Map 8388290) { // Update return text - newMessage.content = `${apiPrefix}<@${query.get('user') - }>${returnmsg.line1}\n${returnmsg.line2}\nDetails have been ommitted from this message for being over 2000 characters. Full details could not be attached to this messaged as a \`.txt\` file as the file would be too large for Discord to handle. If you would like to see the details of rolls, please send the rolls in multiple messages instead of bundled into one.`; + newMessage.content = `${apiPrefix}<@${ + query.get('user') + }>${returnmsg.line1}\n${returnmsg.line2}\nDetails have been ommitted from this message for being over 2000 characters. Full details could not be attached to this messaged as a \`.txt\` file as the file would be too large for Discord to handle. If you would like to see the details of rolls, please send the rolls in multiple messages instead of bundled into one.`; } else { // Update return text - newMessage.content = `${apiPrefix}<@${query.get('user') - }>${returnmsg.line1}\n${returnmsg.line2}\nDetails have been ommitted from this message for being over 2000 characters. Full details have been attached to this messaged as a \`.txt\` file for verification purposes.`; + newMessage.content = `${apiPrefix}<@${ + query.get('user') + }>${returnmsg.line1}\n${returnmsg.line2}\nDetails have been ommitted from this message for being over 2000 characters. Full details have been attached to this messaged as a \`.txt\` file for verification purposes.`; newMessage.file = { 'blob': b, 'name': 'rollDetails.txt' }; } }