Added check to protect the command from errors: Check user availability, then for their ban (if any), then bot permission checks, then role hierarchy checks, then final ambiguous .bannable check before proceeding to attempt to DM the user and (un)ban them. This does not apply to unbansI cannot ban test acc#4533 (957310978721198130) because their highest role (Owner, highest) is higher than or the same as my highest role (ZBot, 2nd highest).
Changed the checking of unbans, it will now no longer fetch from BanManager instead will directly get it from cache.
Now DMs the user.
You have been (un)banned from ZBot Server without a reason.
Improvement in reply to ban command.
Successfully (un)banned test acc#4533 (957310978721198130) from the server with reason stupid behaviour.
You can now provide a duration for the number of days of message history to delete
kick.ts
Added check to protect the command from errors: Check user availability, then bot permission checks, then role hierarchy checks, then final ambiguous .kickable check before proceeding to attempt to DM the user and kick them.
I cannot kick test acc#4533 (957310978721198130) because their highest role (Owner, highest) is higher than or the same as my highest role (ZBot, 2nd highest).
Now DMs the user.
You have been kicked from ZBot Server without a reason.
Improvement in reply to kick command.
Successfully kicked test acc#4533 (957310978721198130) from the server with reason stupid behaviour.
timeout.ts
Added check to protect the command from errors: Check member availability, then for their timeout (if any), then bot permission checks, then role hierarchy checks, then final ambiguous .moderatable check before proceeding to attempt to DM the user and timeout them.
I cannot remove the timeout for test acc#4533 (957310978721198130) because their highest role (Owner, highest) is higher than or the same as my highest role (ZBot, 2nd highest).
Prompt for remove timeout will now include the time the user has remaining.
Are you sure you would like to remove the timeout from test acc#4533 (957310978721198130)? Their timeout ends in 6 hours.
Now DMs the user.
Improvement in display of time.
2 days 4 minutes 3 seconds2 days, 4 minutes and 3 secondsYou have been timed out in ZBot Server without a reason, for a duration of 2 days, 6 hours and 4 minutes.
Improvement in reply to timeout command.
Successfully timed out test acc#4533 (957310978721198130) in the server with reason stupid behaviour, for a duration of 2 days, 6 hours and 4 minutes.
ytvid.ts
File removed. New music system to be put in place.
Credit: RQ#7612
Now ready to merge.
Any new issues to be reported in the Issues tab, and pull requests in the Pull Requests tab.
Music and level system to be updated later.
PR
PR
#3
Create database.ts
(merged) Added database.ts filePR
#4
Slash commands
(merged) Added commands Updated importsFIXED ISSUES
ban.ts
.bannable
check before proceeding to attempt to DM the user and (un)ban them. This does not apply to unbans I cannot ban test acc#4533 (957310978721198130
) because their highest role (Owner, highest) is higher than or the same as my highest role (ZBot, 2nd highest).BanManager
instead will directly get it from cache.957310978721198130
) from the server with reason stupid behaviour.kick.ts
.kickable
check before proceeding to attempt to DM the user and kick them. I cannot kick test acc#4533 (957310978721198130
) because their highest role (Owner, highest) is higher than or the same as my highest role (ZBot, 2nd highest).957310978721198130
) from the server with reason stupid behaviour.timeout.ts
.moderatable
check before proceeding to attempt to DM the user and timeout them. I cannot remove the timeout for test acc#4533 (957310978721198130
) because their highest role (Owner, highest) is higher than or the same as my highest role (ZBot, 2nd highest).957310978721198130
)? Their timeout endsin 6 hours
.2 days 4 minutes 3 seconds2 days, 4 minutes and 3 seconds You have been timed out in ZBot Server without a reason, for a duration of 2 days, 6 hours and 4 minutes.957310978721198130
) in the server with reason stupid behaviour, for a duration of 2 days, 6 hours and 4 minutes.ytvid.ts
File removed. New music system to be put in place. Credit:RQ#7612
Commands are now global.
Now ready to merge. Any new issues to be reported in the Issues tab, and pull requests in the Pull Requests tab. Music and level system to be updated later.