Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge Rust refactoring into master (#53)
* build: fix wrong merge comments * refactor: type autoreport `chat`/`chatLog` correctly * refactor: use `SlashCommandOptionsOnlyBuilder` and `SlashCommandSubcommandsOnlyBuilder` for correct `data` function types * refactor: remove deprecated `SlashCommandBuilder` option * refactor: add type checking for `PartialGroupDMChannel` to avoid errors with `awaitMessages` method * build: fix incorrect typedoc version * build: add postinstall script to ensure `prisma generate` runs on some hosts * fix: reaction id/name not being filtered * fix: allow `console.log` logging for prod environment * fix: activate `PresetHandler.InicializateAll()` and implement it * feat: add new config models to schema (#9) * fix: implement no implemented case to autoreport autocomplete (#9) * refactor: remove unnecessary imports from `PresetHandler` * feat: prepare `PermissionsHandler` to use Prisma instead json files (#9) * feat: implement `PermissionsHandler` alterations (#9) * feat: base code of new `config` command (#9) * fix: put correct _id mapping for `CommandPermissions` model (#9) * fix: configure correctly `EnsureCommandsPermissions` and `AllowedRoles` (#9) * feat: allow guild owner to use `config` command without prior permissions (#9) * feat: implement `command-permissions` subcommand to`config` command (#9) * refactor: rename commands `mod` folder to `moderation` * feat: create base Rust code and modules (#38) * build: add Cargo files * build: add /target to .gitignore * chore: configure codelldb debug entry * refactor: add basic EventHandler (#38) * feat(handler): create `new` implementation to `Error` trait (#42) * feat(commands): improve `ping` command with gateway info * refactor(commands): add base of `kick` command (#41) * build(deps): add chrono and strum_macros as deps * refactor(database): implement prisma in Rust (#40) * refactor(database): implement `PunishmentHandler` add method in Rust (#40) * refactor(commands): implement kick command in Rust (#41) * chore: add `default-run`script * refactor(database): change prisma client provider (#40) * build(deps): add `regex` * refactor(utils): refactor `emojiFormat` and `customEmoji` in Rust (#42) * test(utils): rewrite `customEmoji` and `emojiFormat` tests in Rust (#42) * chore(docker): rewrite `Dockerfile` and `docker-compose.yml` to cover Rust refactoring (#42) * chore(scripts): create `dev` script` and rewrite `on-container_dev-init` to cover Rust refactoring (#42) * chore: add docker script for development on Windows * chore: remove useless lines from gitignore * refactor(utils): refactor `limitToMili` in Rust (#42) * test(utils): create unitary tests to `limit_to_milli` (#42) * chore(vscode): create debug entry to Rust debbuging with codelldb * feat: implement internationalization (#3) * feat: extract the remaining strings from the Rust code (#3) * build(deps): add strum * chore: implement Rust to the dev environment (#44) * feat: add supported locales (#52) * feat: implement i18n handler (#52) * feat(locales): add current locale strings (#52) * feat(command): prevent command base (#51) * refactor: create alias module --------- Co-authored-by: Vitor <[email protected]>
- Loading branch information