We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b02edd commit 07c4e9aCopy full SHA for 07c4e9a
2 files changed
src/http.js
@@ -85,7 +85,7 @@ module.exports = async client => {
85
statusCode: 451,
86
});
87
}
88
- if (!req.user.scopes?.includes('applications.commands.permissions.update')) {
+ if (!req.user.service && !req.user.scopes?.includes('applications.commands.permissions.update')) {
89
return res.code(401).send({
90
elevate: 'admin',
91
error: 'Unauthorised',
src/routes/api/users/@me/key.js
@@ -11,6 +11,7 @@ module.exports.get = fastify => ({
11
token: this.jwt.sign({
12
createdAt: Date.now(),
13
id: req.user.id,
14
+ service: true,
15
}),
16
};
17
0 commit comments