djs-builder 0.6.39 → 0.6.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -266,7 +266,7 @@ async function starter(client, options) {
266
266
  if (
267
267
  command.ownerOnly &&
268
268
  message.guild &&
269
- message.author.id !== message.guild.ownerId
269
+ message.author.id !== (await message.guild.fetchOwner()).id
270
270
  )
271
271
  return;
272
272
 
@@ -315,7 +315,7 @@ async function starter(client, options) {
315
315
  if (
316
316
  command.ownerOnly &&
317
317
  interaction.guild &&
318
- interaction.user.id !== interaction.guild.ownerId
318
+ interaction.user.id !== (await interaction.guild.fetchOwner()).id
319
319
  ) {
320
320
  return interaction.reply({
321
321
  content: "`❌` هذا الأمر محصور لصاحب السيرفر فقط!",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "djs-builder",
3
- "version": "0.6.39",
3
+ "version": "0.6.40",
4
4
  "note": "🎉 Package Update! 🥏\n\n- 📚 Documentation: Added full guide for Giveaway System & Hot Reloading.\n- 🐛 Bug Fixes: Fixed critical issue in Giveaway winner selection.\n\n🔗 Learn more on [NPM](https://www.npmjs.com/package/djs-builder)",
5
5
  "description": "🎉 Package Update! 🥏",
6
6
  "main": "handler/starter.js",