Mara
Explore posts from serversMDCMara's Developper Corner
โขCreated by Mara on 7/2/2024 in #๐get-help
How to get help?
Please, follow the proposed template below:
Mandatory fields are marked by โญ
Issue validation โญ
- [ ] I checked the issues to prevent duplicate
- [ ] I checked my configurations files and the documentation
- [ ] My issue doesn't concern Quartz.
Command used โญ
- Upload all notes
- Upload unpublished notes
- Upload single current active note
- Refresh published and upload new notes
- Refresh all published notes
- Test the connection to the configured repository
Describe the bug
Reproduction โญ
//How to reproduce the error?
Minimal reproducible example
Logs
Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks. You can open the Obsidian's console with "CTRL/Cmd+MAJ+I."
Configuration
Plugins configuration โญ
OS
- IOS
- Android
- MacOS
- Windows
- Linux
Plugin version โญ: v..โฆ
Obsidian version
Please copy and paste the information about your Obsidian version using the command "show debug info" in the obsidian's commands palette.
1 replies
DIAdiscord.js - Imagine an app
โขCreated by Mara on 6/22/2024 in #djs-questions
Forum tags - Create a new tag if not exists
I try to create a new tags in a forum if the tag exists:
But it seems that the absence of id leads to an error:
But I don't know how to set an ID when creating a new tags?
3 replies
DIAdiscord.js - Imagine an app
โขCreated by Mara on 4/19/2024 in #djs-questions
[Question] How long is a file stored?
My bot send an attachment (simple JSON files) and stock the ID of the message (+channel obviously).
I download the attachment and parse it when needed.
But with the changement discord have with attachment, I want to know how long it lives on the server before being deleted.
I don't mean about the links expiring, but the attachment itself (as I don't use the attachment URL).
6 replies
DIAdiscord.js - Imagine an app
โขCreated by Mara on 4/14/2024 in #djs-questions
Fetch a message by using the url
I know we can get a message with channel and message ID, but maybe it exists a methods to get from url directly, instead of parsing the URL (like regex) and get channel and after the message ?
(It's a general question but in case of :
-
discord.js
: [email protected]
- node
: v18.18.0
)7 replies
DIAdiscord.js - Imagine an app
โขCreated by Mara on 3/5/2024 in #djs-questions
Modal โ Pagination
Hi!
To construct my bot, I wanted to use modals allowing user reply. But my number of fields is more than 5.
It's is possible to construct multiple modals with pagination or simply the button "validate" open the second modal? (I can count easily the number of futur fields and cut by 5)
I can't use a specific slash commands here (as the argument are user defined) so I have the choice between modal pagination or waiting a reply for the user (using a more generic slash commands)
I think the second pretty long vs a modal, that's why I ask.
6 replies
DIAdiscord.js - Imagine an app
โขCreated by Mara on 7/21/2023 in #djs-questions
Embed: Wrong image in iconURL
Hello!
I'm with Typescript. I generate my image using my GitHub repository, so I just need to push to it and use
https://raw.githubusercontent.com/${GITHUB}/master/images
The image has been successfully pushed (for example, see : https://raw.githubusercontent.com/lisandra-dev/velum-bot/master/images/meteo/moon/waxing-crescent.png)
But, my bot continue to load/display the old version of the image, as I changed the image previously.
How cache image works in discord ? How can I fix that ?
I use a link like that:
4 replies
DIAdiscord.js - Imagine an app
โขCreated by Mara on 7/10/2023 in #djs-questions
get "Global display name"
Hello!
Since the discord update, discriminator disappear, and we have now the option to set a "global display name". For example, mine is "Mara", and my pomelo is "mara__li".
I want to know how I can get the global display name with the discordJS api.
I tried:
-
user.username
- member.nickname
- member.displayName
I'm in DJS v14.11.04 replies
DIAdiscord.js - Imagine an app
โขCreated by Mara on 7/9/2023 in #djs-questions
Error: Not enough sessions remaining to spawn 1 shards; only 0 remaining; resets at <time>
Hello!
My bot Knitting is host on a VPS (oracle free tier). I have two bot on this VPS, and the second work as excepted.
Knitting won't run, and I have this error :
Error: Not enough sessions remaining to spawn 1 shards; only 0 remaining; resets at
.
The bot don't use sharding, because it's not on many guild.
Here the full stack:
6 replies