Adan_ea
Adan_ea
DIAdiscord.js - Imagine an app
Created by Adan_ea on 3/12/2024 in #djs-questions
Bulk delete stopping at 50
Oh that worked ! Thank you very much :] Didn't notice this change (i'll admit it stopped deleting the asked amount a long time ago. But I kept delaying)
5 replies
DIAdiscord.js - Imagine an app
Created by Adan_ea on 3/12/2024 in #djs-questions
Bulk delete stopping at 50
Ah ok i see, so if i give the number as a limit, will it go towards the limit or will it stay at the 50 ?
5 replies
DIAdiscord.js - Imagine an app
Created by Adan_ea on 11/22/2023 in #djs-questions
voice.setRTCRegion(null) not working
Ah wait it works... it's just discord not switching to a better server
4 replies
DIAdiscord.js - Imagine an app
Created by Adan_ea on 11/22/2023 in #djs-questions
voice.setRTCRegion(null) not working
No description
4 replies
DIAdiscord.js - Imagine an app
Created by Adan_ea on 9/19/2023 in #djs-questions
Unable to import a component from a file to another
!close
10 replies
DIAdiscord.js - Imagine an app
Created by Adan_ea on 9/19/2023 in #djs-questions
Unable to import a component from a file to another
I'll move this to #other-js-ts, sorry
10 replies
DIAdiscord.js - Imagine an app
Created by Adan_ea on 9/19/2023 in #djs-questions
Unable to import a component from a file to another
yeah i agree with you, but i get the issue with this type of export only, whenever i use a builder and export it i get the error
10 replies
DIAdiscord.js - Imagine an app
Created by Adan_ea on 9/19/2023 in #djs-questions
Unable to import a component from a file to another
So definitly not djs related ?
10 replies
DIAdiscord.js - Imagine an app
Created by Adan_ea on 9/19/2023 in #djs-questions
Unable to import a component from a file to another
I'm not entirely sure if it's an issue with the build func from djs or just something wrong in my code, sorry if it's the latter
10 replies
DIAdiscord.js - Imagine an app
Created by Adan_ea on 7/25/2023 in #djs-questions
Building slash commands differently
yeah my bad sorry, but hey at least i fixed it ! And thanks for the help the issue is resolved
16 replies
DIAdiscord.js - Imagine an app
Created by Adan_ea on 7/25/2023 in #djs-questions
Building slash commands differently
16 replies
DIAdiscord.js - Imagine an app
Created by Adan_ea on 7/25/2023 in #djs-questions
Building slash commands differently
Thanks a lot, i'm gonna try it and i'll come back to you !
16 replies
DIAdiscord.js - Imagine an app
Created by Adan_ea on 7/25/2023 in #djs-questions
Building slash commands differently
Omg i'm gonna try that out, it would be game changer
16 replies
DIAdiscord.js - Imagine an app
Created by Adan_ea on 7/25/2023 in #djs-questions
Building slash commands differently
But how about the sub commands then ? How can i include them ?
16 replies
DIAdiscord.js - Imagine an app
Created by Adan_ea on 7/25/2023 in #djs-questions
Building slash commands differently
I can just do the first one and use it that way ?
16 replies
DIAdiscord.js - Imagine an app
Created by Adan_ea on 7/25/2023 in #djs-questions
Building slash commands differently
That's how i'm currently "supposed" to do with discord.js 14 (that's how it's done on the doc) But i liked how it was done in v13
16 replies
DIAdiscord.js - Imagine an app
Created by Adan_ea on 7/25/2023 in #djs-questions
Building slash commands differently
It's not that it doesn't work, i just find this heavy and not really easy to read:
.setName('event')
.setDescription('Créer un évènement')
.addStringOption(option =>
option.setName('titre').setDescription("Titre de l'évènement").setRequired(true)
)
.addStringOption(option =>
option
.setName('dateheure')
.setDescription("Date et heure de l'évènement (AAAA-MM-JJ HH:mm)")
.setRequired(true)
)
.addStringOption(option =>
option
.setName('description')
.setDescription("Description de l'évènement")
.setRequired(false)
)
.addStringOption(option =>
option
.setName('imageurl')
.setDescription("URL de l'image (png|jpg|jpeg|gif|webp)")
.setRequired(false)
)
.addNumberOption(option =>
option
.setName('maxparticipants')
.setDescription("Nombre de participants max, les autres seront en file d'attente")
.setRequired(false)
)
.addStringOption(option =>
option.setName('duree').setDescription("Durée de l'évènement").setRequired(false)
),
category: 'events',
permissions: [PermissionsBitField.Flags.ManageEvents],
usage: `event [titre][description][dateheure]<durée><maxparticipants><imageURL>
.setName('event')
.setDescription('Créer un évènement')
.addStringOption(option =>
option.setName('titre').setDescription("Titre de l'évènement").setRequired(true)
)
.addStringOption(option =>
option
.setName('dateheure')
.setDescription("Date et heure de l'évènement (AAAA-MM-JJ HH:mm)")
.setRequired(true)
)
.addStringOption(option =>
option
.setName('description')
.setDescription("Description de l'évènement")
.setRequired(false)
)
.addStringOption(option =>
option
.setName('imageurl')
.setDescription("URL de l'image (png|jpg|jpeg|gif|webp)")
.setRequired(false)
)
.addNumberOption(option =>
option
.setName('maxparticipants')
.setDescription("Nombre de participants max, les autres seront en file d'attente")
.setRequired(false)
)
.addStringOption(option =>
option.setName('duree').setDescription("Durée de l'évènement").setRequired(false)
),
category: 'events',
permissions: [PermissionsBitField.Flags.ManageEvents],
usage: `event [titre][description][dateheure]<durée><maxparticipants><imageURL>
16 replies