Skip to content

Commit

Permalink
Finish rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
HarryAllen1 committed Aug 30, 2022
1 parent 61b21c4 commit 7650d89
Show file tree
Hide file tree
Showing 25 changed files with 1,378 additions and 292 deletions.
23 changes: 19 additions & 4 deletions docs/update.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,25 @@
# Upcoming Update

Discord is currently [recommending that all Discord bots switch to slash commands](https://support-dev.discord.com/hc/en-us/articles/4404772028055).
As the result, Sniper will, at some point, stop supporting message commands.
As the result, Sniper will stop supporting message commands.

## Changes you need to make

As a server owner, the only changes that will need to be made is ensuring that Sniper has permissions to register slash commands in your server.
To do this, **simply run through the [setup steps](./setup.md)** again.
This involves re-inviting Sniper with the `applications.commands` permission, which allows Sniper to register commands in your server.
As a server owner, the only changes that will need to be made is ensuring that your users have the right permissions to use commands.
This can be checked in `Server Settings`/`Integrations`.

## Full Changelog

### Removed Commands

- `deletealldata` (since currency commands were deleted)
- `faq` (wasn't helpful at all)
- `feature` and `github` (if you know, you know)
- `prefix` (bot now uses slash commands)
- `say` (just say it yourself)
- `sudo` (it never worked)
- `bot` (you don't need it)

### Other Changes

- `roleinfo` and `roles` were merged into one command
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"main": "dist/index.js",
"scripts": {
"preinstall": "npx only-allow pnpm",
"dev": "tsup --watch --onSuccess \"node --enable-source-maps .\"",
"dev": "tsup --watch --onSuccess \"DEV_SCRIPT=true node --enable-source-maps .\"",
"build": "tsup",
"watch": "tsup --watch",
"start": "pnpm build && node out/index.js",
Expand All @@ -28,18 +28,21 @@
"@sapphire/discord.js-utilities": "5.1.0-pr-434.549335e.0",
"@sapphire/framework": "3.1.0-pr-512.135ce4a.0",
"@sapphire/plugin-logger": "^3.0.0",
"@sapphire/type": "^2.2.4",
"@sapphire/utilities": "^3.9.2",
"colorette": "^2.0.19",
"discord.js": "^14.3.0",
"firebase-admin": "^11.0.1",
"luxon": "^3.0.3",
"ms": "3.0.0-canary.1"
},
"devDependencies": {
"@firebase/app-types": "^0.7.0",
"@sapphire/eslint-config": "^4.3.8",
"@types/node": "18.7.13",
"@typescript-eslint/eslint-plugin": "5.35.1",
"@typescript-eslint/parser": "5.35.1",
"@types/luxon": "^3.0.0",
"@types/node": "18.7.14",
"@typescript-eslint/eslint-plugin": "5.36.0",
"@typescript-eslint/parser": "5.36.0",
"eslint": "8.23.0",
"eslint-config-prettier": "^8.5.0",
"lodash": "^4.17.21",
Expand Down
Loading

0 comments on commit 7650d89

Please sign in to comment.