Comments (3)
Also, documentation for the command should reflect the need for an at-sign.
from rocket-bot.
The cookie command should be able to handle a username that does not start with an @-sign.
Sadly, because of the lack of permissions [see GUILD_MEMBERS
here], the bot only has access to the sending user and any mentioned per message. This means the bot cannot convert a text-name to a valid mention.
There is a chance that the bot can just do @username
, having Discord convert it to a mention, though this needs further testing.
Also, documentation for the command should reflect the need for an at-sign.
Noted. I will add that along with the other fixes.
2022-10-29T06:38:38.182091604Z at Object.exports.run (/usr/src/app/commands/cookie.js:12:19)
2022-10-29T06:38:38.182097835Z at Client.<anonymous> (/usr/src/app/main.js:135:21)
2022-10-29T06:38:38.182103034Z at processTicksAndRejections (node:internal/process/task_queues:96:5)
The error above should not occur either way; I will look into that.
from rocket-bot.
This was fixed in a recent release. Cookie no longer returns a mention but the nickname, so any input (including mentions) will be returned.
from rocket-bot.
Related Issues (10)
- Prep for releasing v2.2.0 HOT 5
- Update CHANGELOG
- Random image command HOT 2
- TAF command HOT 1
- Bot responds to @here HOT 1
- Weather station ID sources HOT 3
- New command: !kerbals HOT 1
- Update packages HOT 1
- LICENSE needed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rocket-bot.