WhacK
Explore posts from serversSIASapphire - Imagine a framework
•Created by WhacK on 7/22/2024 in #sapphire-support
manual task compiler error
The heading might not be the best here but I tried searching and the docs but can't figure out what I am doing wrong. I used the scheduled tasks plugin. I've been using it for a while and my bot runs certain pattern tasks with no issue.
I want to create a manual task that deletes a message if it's deletable after a set period of time. I followed the directions here
https://github.com/sapphiredev/plugins/blob/1f0ca075501324013b7a79410ee4bc04ebad9720/packages/scheduled-tasks/README.md#manual-task-example
My compiler is giving this error: Expected 1-2 arguments, but got 3.ts(2554)
15 replies
DIAdiscord.js - Imagine an app
•Created by WhacK on 3/7/2024 in #djs-questions
reply to message with channel webhook
Is it possible to use Webhook.send() to reply to a message in the same channel? I followed the docs and it makes it look like you could add the reply parameter to the MessagePayload.create() and set the reference like described in this question in this forum https://discord.com/channels/222078108977594368/1171346142823460886.
This is the code I am using. The message sends to the right channel and everything but it doesn't show the reference like other replies.
10 replies
DIAdiscord.js - Imagine an app
•Created by WhacK on 9/18/2023 in #djs-questions
Channel.messages.fetch(id) giving mixed results
My bot uses the embed fields to match an Array from the embed to their character stats. On Desktop this issue doesn't seem to happen. When testing the submit command from mobile the statRoll message is giving me 2 different values. Sometimes the embeds are there and sometimes they are gone. Everything else looks to be the same.
Correct response (no errors):
Embeds missing:
26 replies
SIASapphire - Imagine a framework
•Created by WhacK on 9/17/2023 in #discordjs-support
Channel.messages.fetch getting different values
My bot uses the embed fields to match an Array from the embed to their character stats. On Desktop this issue doesn't seem to happen. When testing the submit command from mobile the statRoll message is giving me 2 different values. Sometimes the embeds are there and sometimes they are gone. Everything else looks to be the same.
Correct response (no errors):
Embeds missing:
10 replies
SIASapphire - Imagine a framework
•Created by WhacK on 9/3/2023 in #sapphire-support
Modal Validation String Primitive
I'm receiving an error when trying to display my modal. I've tried following the docs but may be missing something.
I tried using this answer because it looks like the exact same issue but my modal does have a title. https://discord.com/channels/737141877803057244/1122637599933223002/1122759262716842006
Error: https://pastebin.com/vF6YKkMv
Code: https://pastebin.com/GR0HnK44
Appreciate the help!
8 replies
SIASapphire - Imagine a framework
•Created by WhacK on 2/19/2023 in #sapphire-support
Bot stalls while registering commands
My bot was working fine yesterday after noticing the new Cog section of the documentation (really cool thank you it worked perfectly.) After I changed to the cog system I noticed the updates to the packages in Announcements. I ran npm upgrade and started receiving the channel errors noted in another thread which I was able to fix. The bot now just stalls when registering commands, any idea what I can change? The registrations match the documentation as far as I can tell.
Log: https://pastebin.com/BrPAYDa3
Package.json: https://pastebin.com/rRQyYjWA
register snippet: https://pastebin.com/xeiryjk8
"COG"s implementation: https://pastebin.com/dtS487BH
28 replies
SIASapphire - Imagine a framework
•Created by WhacK on 12/8/2022 in #sapphire-support
TypeError piece.aliases not iterable
When my bot is logging in, it is being prevented by this error below. I tried deleting my node_modules and reinstalling but the same thing happens. Obviously the error can't be in the framework, any idea how I can get past this?
error:
package.json
22 replies