𝒄𝒐𝒄𝒐𝒌𝒊𝒕𝒕𝒆𝒏
𝒄𝒐𝒄𝒐𝒌𝒊𝒕𝒕𝒆𝒏
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by ntb896 on 7/11/2024 in #djs-questions
Avoid commands being sent at the same time
not that it's not the better solution, just like, at least personally if it's a smaller project anyway I wanna keep the workload low too
22 replies
DIAdiscord.js - Imagine an app
Created by ntb896 on 7/11/2024 in #djs-questions
Avoid commands being sent at the same time
they're just a lot more work in handling them correctly,.. vs just an object storage
22 replies
DIAdiscord.js - Imagine an app
Created by ntb896 on 7/11/2024 in #djs-questions
Avoid commands being sent at the same time
its simple... and usually enough for a private bot with not really critical data
22 replies
DIAdiscord.js - Imagine an app
Created by ntb896 on 7/11/2024 in #djs-questions
Avoid commands being sent at the same time
if ur bot is bigger or the data is important, keyv might be a good database solution if u didn't like mongodb https://www.npmjs.com/package/keyv
22 replies
DIAdiscord.js - Imagine an app
Created by ntb896 on 7/11/2024 in #djs-questions
Avoid commands being sent at the same time
I don't think limiting the command execution is the right way to go about that.. for simplicity, on a smaller bot, I think a json database is just fine, but 1. don't read and write synchronously, 2. maybe load your databases once instead of re-reading the same file every time.. there's no need if you just keep the object in memory. then for writing, implement an asynchronous debounced write function that u call every time u update anything in ur database.
22 replies
DIAdiscord.js - Imagine an app
Created by peachii on 7/8/2024 in #djs-questions
TypeError: Cannot read properties of undefined (reading 'send')
do u know for sure that the channel is a text based channel in a guild the bot is on?
33 replies
DIAdiscord.js - Imagine an app
Created by constt 🎄❄ on 5/13/2024 in #djs-questions
delete channels
right, I figured it out with the "view as role" thingy
33 replies
DIAdiscord.js - Imagine an app
Created by constt 🎄❄ on 5/13/2024 in #djs-questions
delete channels
is there a list somewhere which permission you need for which action? is "edit roles" also enough to manage integration permissions or does that need "manage server"?
33 replies
DIAdiscord.js - Imagine an app
Created by constt 🎄❄ on 5/13/2024 in #djs-questions
delete channels
Thank you, that actually helps a lot
33 replies
DIAdiscord.js - Imagine an app
Created by constt 🎄❄ on 5/13/2024 in #djs-questions
delete channels
I don't see "manage permissions" anywhere in my role settings
33 replies
DIAdiscord.js - Imagine an app
Created by constt 🎄❄ on 5/13/2024 in #djs-questions
delete channels
Doesn't change that problem of discord putting a dangerous action into the same permissions with a bunch of managing and reversible ones It's like giving change server profile perms only in combination with delete server...
33 replies
DIAdiscord.js - Imagine an app
Created by constt 🎄❄ on 5/13/2024 in #djs-questions
delete channels
-_-
33 replies
DIAdiscord.js - Imagine an app
Created by constt 🎄❄ on 5/13/2024 in #djs-questions
delete channels
like.. manage channels is such a broad permission.. maybe you wanna give someone perms to edit channel permissions and overrides for you etc, but that's all reversible stuff, even if they do troll. but deleting the channel is part of that,... so like..... I mean yea that's just discord doing the hell what but is there a way to prevent the deletion?
33 replies
DIAdiscord.js - Imagine an app
Created by constt 🎄❄ on 5/13/2024 in #djs-questions
delete channels
side question though.. is it possible to restore deleted channel somehow? or make a backup or something? or prevent things from deleting them in the first place (if they have the manageChannels permission)
33 replies
DIAdiscord.js - Imagine an app
Created by constt 🎄❄ on 5/13/2024 in #djs-questions
delete channels
besides there's no channel bulkDelete is there? so like.. no way around rate limits
33 replies
DIAdiscord.js - Imagine an app
Created by Avarrice on 4/3/2024 in #djs-questions
automatically obtain guildId
They're talking about their config, so I assume they mean they don't want to manually add the guild IDs of the guilds their bot is in so that they can store guild specific settings. But you can get the guild id from every interaction, so if you have a setup command or something, u get it from there. Alternatively there's a guild join event too. If I didn't totally misunderstand the question lol
11 replies
DIAdiscord.js - Imagine an app
Created by 𝒄𝒐𝒄𝒐𝒌𝒊𝒕𝒕𝒆𝒏 on 3/29/2024 in #djs-questions
how to avoid api spam when sending "mass dms"
Thank you!
12 replies
DIAdiscord.js - Imagine an app
Created by 𝒄𝒐𝒄𝒐𝒌𝒊𝒕𝒕𝒆𝒏 on 3/29/2024 in #djs-questions
how to avoid api spam when sending "mass dms"
like there are of course many more people on the server, but the goal isn't to notify everyone, since, as it goes on twitch many people just follow or join a server but aren't actually regulars. (and then it would totally just spam them) since it's for something like organising birthday surprises with the regulars in a way the streamer doesn't notice, consent shouldn't be a problem. Though I'll ask him if he can add an opt in role or something like that. delay also isn't a concern, it's just about reducing the workload for tedious organisational tasks like this, I just wanna avoid annoying the api.
12 replies
DIAdiscord.js - Imagine an app
Created by 𝒄𝒐𝒄𝒐𝒌𝒊𝒕𝒕𝒆𝒏 on 3/29/2024 in #djs-questions
how to avoid api spam when sending "mass dms"
Tldr it doesn't matter if the result is the same and ure sending the same API calls anyway, you just have to do it by hand just because?
12 replies
DIAdiscord.js - Imagine an app
Created by 𝒄𝒐𝒄𝒐𝒌𝒊𝒕𝒕𝒆𝒏 on 3/29/2024 in #djs-questions
how to avoid api spam when sending "mass dms"
I just called it that There is no difference of dming 50 people by hand Vs with a bot And rather that he wasted time sending it a bunch of people by hand I'd rather have him type a command with the mentionables and the message once, even if that command sends one DM every second, it'd still save him time
12 replies