yibuh
Explore posts from serversSIASapphire - Imagine a framework
•Created by yibuh on 11/25/2023 in #discordjs-support
Detect when new message is a reply to another one
Hey! Is it possible to detect when a message is a reply?
I have a schedules system that automatically replies to you when you tag a member that's not currently available.
I'd like the bot to differentiate between explicit mentions (i.e. @member) and message replies, which technically include a mention too.
Thanks!
6 replies
SIASapphire - Imagine a framework
•Created by yibuh on 11/16/2023 in #sapphire-support
Listeners and Handlers not registering interactions/events
Hey! After the latest release my bot is not responding to any interactions or events.
Slash commands, buttons, modals, everything stopped working.
I already made the necessary changes to my files
17 replies
SIASapphire - Imagine a framework
•Created by yibuh on 11/16/2023 in #sapphire-support
Deployment failing
Hey! My sapphire deployment is failing but I don't really know why. It is giving me some errors on the framework's code apparently:
Any help is appreciated 🙂 Thanks in advance
8 replies
SIASapphire - Imagine a framework
•Created by yibuh on 11/6/2023 in #sapphire-support
Handle secondary bots from main
Hey! I am working on a meetings system that would require my bot to join meetings and record transcriptions.
As we have several meetings and sometimes they overlap, I'd like to handle two to three secondary bots that would join the meeting when others are occupied.
Is it possible to handle this logic in sapphire? How could that be done? Thank you!
8 replies
DIAdiscord.js - Imagine an app
•Created by yibuh on 11/4/2023 in #djs-questions
Set voice channel topic
Is it possible to set the text that goes below the voice channels' names using discord.js?
3 replies
SIASapphire - Imagine a framework
•Created by yibuh on 10/29/2023 in #sapphire-support
The inferred type of 'parse' cannot be named without a reference to...
Hey! I am getting this error while trying to create an interaction handler:
The inferred type of 'parse' cannot be named without a reference to '.pnpm/@[email protected]/node_modules/@sapphire/result'. This is likely not portable. A type annotation is necessary.
This is my code:
8 replies
SIASapphire - Imagine a framework
•Created by yibuh on 9/28/2023 in #sapphire-support
AutoComplete subcommand name/id
Hello! I'm trying to use autocomplete interactions for my subcommands. Both subcommands (start & end) have the same autocomplete option called 'event'.
I'd like to be able to identify which subcommand is being used to use a different logic for each one. Is this possible? Currently I am only able to access the command's information but not the subcommands.
5 replies
SIASapphire - Imagine a framework
•Created by yibuh on 6/24/2023 in #sapphire-support
__importStar is not defined
Hey! I am using a star import in my bot but whenever I try to run the dev script, it gives me the following error:
I guess it is more a TypeScript related issue. This is the line that's causing it:
3 replies
SIASapphire - Imagine a framework
•Created by yibuh on 6/15/2023 in #sapphire-support
Creating a button handler
Hey! I would like to know if there is a way to create a button handler using Sapphire. I would like to read all files from a folder called "buttons" and store the data inside my container. I'd then check if there is an existing button with the given interaction id inside my container and if there is, I'd run the execute function.
I came up with some code but can't manage to get it working. I'll attach it down below. Thanks in advance for all the help 🙂
8 replies
SIASapphire - Imagine a framework
•Created by yibuh on 6/13/2023 in #sapphire-support
New to Sapphire! Where should I start?
Hey! I've been developing Discord bots with discord.js for over two years now and I've recently made the jump to Sapphire and TypeScript. Where should I start? I am reading the guide to get an idea of how the framework works but I'd really appreciate any tips or guidance on what my next steps should be. Thank you very much in advance 🫶
4 replies
DIAdiscord.js - Imagine an app
•Created by yibuh on 8/6/2022 in #djs-questions
Add empty value to embed field
Is it possible to have an embed field with only a title and no value? I'd like to use hyperlinks & inline fields on an embed.
Thank you 🙂
3 replies
DIAdiscord.js - Imagine an app
•Created by yibuh on 8/4/2022 in #djs-questions
Access Discord.js documentation
Is it possible to access discord.js documentation for autocomplete interactions? I'd like to make a bot similar to d.js docs
7 replies
DIAdiscord.js - Imagine an app
•Created by yibuh on 7/29/2022 in #djs-questions
Has the end() method been removed from InteractionCollector?
As the title says, I am getting an error saying
collector.end()
is not a function when running collector.end()
my collector declaration:
4 replies
DIAdiscord.js - Imagine an app
•Created by yibuh on 7/29/2022 in #djs-questions
Was Util removed from discord.js?
Getting undefined when trying to import Util from discord.js
4 replies
DIAdiscord.js - Imagine an app
•Created by yibuh on 7/27/2022 in #djs-questions
get EmbedBuilder from Embed object
is it possible to get an embed builder instance from an embed object?
I am trying to edit an already sent message's embed using the EmbedBuilder methods.
Example:
18 replies