Hi,
it would appear this extension does not respect some API caveats, specifically the allowed length of the message body.
Long messages should be shortened or split.
Also notice the different responses from Discord, "Must be 4000 or fewer in length" and "Must be 2000 or fewer in length".
Error log:
^[[36mrust_1 |^[[0m Request Body:
^[[36mrust_1 |^[[0m {
^[[36mrust_1 |^[[0m "content": ":desktop: [Custom] [Discord Extension] [Error]: Discord API has returned error Discord Code: 50035 Discord Error: Invalid Form Body Request: [POST] https://discord.com/api/v9/channels/894464994186502145/messages (Response Code: BadRequest)\nDiscord Errors: {\n \"content\": {\n \"_errors\": [\n {\n \"code\": \"BASE_TYPE_MAX_LENGTH\",\n \"message\": \"Must be 2000 or fewer in length.\"\n }\n ]\n }\n}\nRequest Body:\n{\n \"content\": \":desktop: [Custom] Listing 58 plugins:\\n 01 \\\"BPUnlock\\\" (1.0.6) by Death (0.00s) - BPUnlock.cs\\n 02 \\\"Big Wheel Spawn Fix\\\" (1.0.0) by Orange (0.00s) - BigWheelSpawnFix.cs\\n 03 \\\"Blueprint Manager\\\" (1.1.6) by Orange (0.00s) - BlueprintManager.cs\\n 04 \\\"BotSpawn\\\" (2.1.6) by Steenamaroo (0.01s) - BotSpawn.cs\\n 05 \\\"Bradley\\\" (1.2.3) by Ts3Hosting (0.00s) - Bradley.cs\\n 06 \\\"Building Actions\\\" (1.1.2) by Iv Misticos (0.01s) - BuildingActions.cs\\n 07 \\\"COxygenUI\\\" (1.0.3) by TF Crazy (0.00s) - COxygenUI.cs\\n 08 \\\"CRadio\\\" (1.0.6) by TF Crazy (0.00s) - CRadio.cs\\n 09 \\\"Clans\\\" (0.2.4) by k1lly0u (0.00s) - Clans.cs\\n 10 \\\"Clan Team\\\" (1.0.6) by deivismac (0.00s) - ClanTeam.cs\\n 11 \\\"Component Blocker\\\" (0.1.6) by Calytic (0.02s) - ComponentBlocker.cs\\n 12 \\\"Craft Car Chassis\\\" (1.2.0) by WhiteThunder (0.00s) - CraftChassis.cs\\n 13 \\\"DamageNotify\\\" (1.0.2) by h4tchery (0.00s) - DamageNotify.cs\\n 14 \\\"Death Notes\\\" (6.3.5) by LaserHydra (0.00s) - DeathNotes.cs\\n 15 \\\"Disable Cold Damage\\\" (1.0.3) by Talha (0.00s) - DisableColdDamage.cs\\n 16 \\\"DisableResearch\\\" (1.0.0) by neyko (0.00s) - DisableResearch.cs\\n 17 \\\"Entity Owner\\\" (3.3.1) by Calytic (0.00s) - EntityOwner.cs\\n 18 \\\"Extended Recycler\\\" (1.1.0) by Orange (0.00s) - ExtendedRecycler.cs\\n 19 \\\"Extra Seating\\\" (1.0.8) by Pho3niX90 (0.01s) - ExtraSeating.cs\\n 20 \\\"FancyDrop\\\" (2.9.3) by FastBurst (0.00s) - FancyDrop.cs\\n 21 \\\"Finder\\\" (0.3.0) by neyko (0.00s) - Finder.cs\\n 22 \\\"Floating Text\\\" (1.0.0) by Orange (0.00s) - FloatingText.cs\\n 23 \\\"Heli\\\" (0.3.0) by Wulf/lukespragg (0.00s) - Heli.cs\\n 24 \\\"Image Library\\\" (2.0.58) by Absolut & K1lly0u (0.00s) - ImageLibrary.cs\\n 25 \\\"Inbound\\\" (0.5.2) by Substrata (0.01s) - Inbound.cs\\n 26 \\\"InfoPanel\\\" (1.0.6) by Gonzi (0.02s) - InfoPanel.cs\\n 27 \\\"Inventory Viewer\\\" (4.0.4) by Whispers88 (0.00s) - InventoryViewer.cs\\n 28 \\\"Kits\\\" (4.0.12) by k1lly0u (0.00s) - Kits.cs\\n 29 \\\"No Decay\\\" (1.4.5) by 0x89A (0.00s) - NoDecay.cs\\n 30 \\\"No Give Notices\\\" (0.3.0) by Wulf (0.00s) - NoGiveNotices.cs\\n 31 \\\"No Green\\\" (1.3.9) by Iv Misticos (0.00s) - NoGreen.cs\\n 32 \\\"No Sash\\\" (1.0.2) by Wulf (0.00s) - NoSash.cs\\n 33 \\\"Oil Rig Doors Fix\\\" (1.0.1) by MON@H (0.00s) - OilRigDoorsFix.cs\\n 34 \\\"Oxygen System\\\" (1.0.1) by Orange (0.00s) - OxygenSystem.cs\\n 35 \\\"PhoneSearch\\\" (1.0.1) by h4tchery (0.00s) - PhoneSearch.cs\\n 36 \\\"Phones Plus\\\" (1.0.2) by mr01sam (0.00s) - PhonesPlus.cs\\n 37 \\\"Popup Notifications\\\" (0.2.0) by emu / k1lly0u (0.00s) - PopupNotifications.cs\\n 38 \\\"Prod\\\" (2.5.4) by Quapi (0.00s) - Prod.cs\\n 39 \\\"ProximityVoice\\\" (1.0.0) by neyko & Xanjin (0.00s) - ProximityVoice.cs\\n 40 \\\"Remover Tool\\\" (4.3.28) by Reneb/Fuji/Arainrr (0.00s) - RemoverTool.cs\\n 41 \\\"Rename\\\" (0.3.0) by Wulf/lukespragg (0.00s) - Rename.cs\\n 42 \\\"Rust Admin\\\" (1.0.1) by misticos (0.00s) - RustAdmin.cs\\n 43 \\\"Rustcord\\\" (3.0.1) by Kirollos & OuTSMoKE (0.04s) - Rustcord.cs\\n 44 \\\"Sign Artist\\\" (1.2.6) by Whispers88 (0.00s) - SignArtist.cs\\n 45 \\\"SkinBox\\\" (2.0.8) by k1lly0u (0.01s) - SkinBox.cs\\n 46 \\\"Spawn Modular Car\\\" (5.0.2) by WhiteThunder (0.00s) - SpawnModularCar.cs\\n 47 \\\"Stack Size Controller\\\" (3.4.3) by AnExiledGod (3.64s) - StackSizeController.cs\\n 48 \\\"Tool Cupboard Extender\\\" (0.0.1) by MJSU (0.00s) - TcExtender.cs\\n 49 \\\"TechTreeDisable\\\" (0.1.0) by neyko (0.00s) - TechTreeDisable.cs\\n 50 \\\"TimeOfDay\\\" (2.3.4) by FuJiCuRa (0.00s) - TimeOfDay.cs\\n 51 \\\"Tree Planter\\\" (1.1.2) by Bazz3l (0.00s) - TreePlanter.cs\\n 52 \\\"Vanish\\\" (1.5.5) by Whispers88 (0.00s) - Vanish.cs\\n 53 \\\"Vending In Stock\\\" (1.0.7) by AVOcoder (0.00s) - VendingInStock.cs\\n 54 \\\"Warps\\\" (1.1.1) by Orange (0.00s) - Warps.cs\\n 55 \\\"Whitelist\\\" (3.3.0) by Wulf/lukespragg (0.00s) - Whitelist.cs\\n 56 \\\"Workcart Spawner\\\" (1.1.6) by SPooCK (0.00s) - WorkcartSpawner.cs\\n 57 \\\"Zone Manager\\\" (3.0.21) by k1lly0u (0.04s) - ZoneManager.cs\\n 58 \\\"Zone PVx Info\\\" (1.0.0) by neyko (0.00s) - ZonePVxInfo.cs\"\n}"
^[[36mrust_1 |^[[0m }
^[[36mrust_1 |^[[0m Initializing 51593 stability supports
^[[36mrust_1 |^[[0m done.
^[[36mrust_1 |^[[0m [Discord Extension] [Error]: Discord API has returned error Discord Code: 50035 Discord Error: Invalid Form Body Request: [POST] https://discord.com/api/v9/channels/894464994186502145/messages (Response Code: BadRequest)
^[[36mrust_1 |^[[0m Discord Errors: {
^[[36mrust_1 |^[[0m "content": {
^[[36mrust_1 |^[[0m "_errors": [
^[[36mrust_1 |^[[0m {
^[[36mrust_1 |^[[0m "code": "BASE_TYPE_MAX_LENGTH",
^[[36mrust_1 |^[[0m "message": "Must be 4000 or fewer in length."
^[[36mrust_1 |^[[0m }
^[[36mrust_1 |^[[0m ]
^[[36mrust_1 |^[[0m }
^[[36mrust_1 |^[[0m }
Using DLL v2.0.2
Discord Error BASE_TYPE_MAX_LENGTH
Message handling has been left to plugins to handle if they need to be split as the extension wouldn't know where to split the message at. In the next version, messages will perform validation before submitting and throw an error if they're creating an invalid message request.