aoijs / aoi.js

aoi.js - The most advanced string-based package to create a Discord Bot fast and powerful.
https://aoi.js.org
Apache License 2.0
332 stars 132 forks source link

Bug: sharding dosent works normaly #553

Closed scriptyyy13 closed 5 months ago

scriptyyy13 commented 7 months ago

Bug Type

Function

Bugged Function

$creationDate - not working when sharding enabled

and other sharding functions, $forEachGuild and $updatecommands doesnt works normaly when sharding enabled

Version of aoi.js

v6.6.1

Version of Node.js

v21.4.0 (Current)

Excepted Output

No response

Relevant log output

in $creationDate:
Error [ReferenceError]: id is not defined
    at eval (eval at _eval (/home/container/node_modules/discord.js/src/client/Client.js:502:12), <anonymous>:2:37)
    at eval (eval at _eval (/home/container/node_modules/discord.js/src/client/Client.js:502:12), <anonymous>:2:41)
    at Client._eval (/home/container/node_modules/discord.js/src/client/Client.js:502:12)
    at ShardClientUtil._handleMessage (/home/container/node_modules/discord.js/src/sharding/ShardClientUtil.js:207:82)
    at process.emit (node:events:530:35)
    at emit (node:internal/child_process:951:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21)

Code of Conduct

Faf4a commented 7 months ago

Foreachguild executes within the guilds of the current shards.

$updatecommands works for the current instance where you use the command. Not for all shards.

Don't know about creationDate

cc @Leref

scriptyyy13 commented 7 months ago

$rolePerms dosent works with sharding with the same error $creationDate (there is an error in the first message)

scriptyyy13 commented 7 months ago

will the $creationDate function be fixed when sharding is enabled?

Faf4a commented 7 months ago

@USERSATOSHI up to ya

I don't have experience with sharding at all

USERSATOSHI commented 7 months ago

will the $creationDate function be fixed when sharding is enabled?

does this also fail on latest version of aoi.js

scriptyyy13 commented 7 months ago

will the $creationDate function be fixed when sharding is enabled?

does this also fail on latest version of aoi.js

yes

Faf4a commented 6 months ago

$rolePerms dosent works with sharding with the same error

Can't reproduce that, can reproduce $creationDate though

USERSATOSHI commented 6 months ago

creation date has been fixed we need more info and screenshots for rest of the functions

Faf4a commented 5 months ago

Closing due to inactivity.