Comments (6)
What version of Rust are you getting the error on? You can fetch this with rustc --version
.
from serenity.
@GnomedDev I get rustc 1.75.0 (82e1608df 2023-12-21)
when I run that command. There don't appear to be any updates available when running rustup check
.
from serenity.
I would recommend running cargo clean
and also cargo update
. Your Cargo.lock
may need to get refreshed.
from serenity.
That didn't seem to do anything.
from serenity.
That error message also seems a bit malformed. This isn't a valid function signature:
pub async fn dispatch(self, ctx: Context, handler: &mut dyn event_handler::EventHandler: &dyn EventHandler)
Also, the signature of FullEvent::dispatch
in serenity v0.12.0 is this:
pub async fn dispatch(self, ctx: Context, handler: &dyn EventHandler)
from serenity.
@mkrasnitski I have no idea what's causing the malformed error message, but I reinstalled my toolchain as well as rust itself, tried switching from GNU to MSVC, and tested out the nightly toolchain with no result. What finally ended up working was just changing Serenity's version to v0.11.7. It doesn't really make any sense because I've been using v0.12.0 the whole time and the problem started spontaneously. I'll leave the issue open since my fix was to downgrade, so there must be something up with the current version of Serenity.
from serenity.
Related Issues (20)
- Clear up reaction events and add missing fields/super reaction support
- impl From<EmojiId> for ReactionType doesn't produce a valid reaction HOT 1
- field name inconsistency for `FullEvent`.
- Cache results of methods that request data using `Http` HOT 1
- Build fails on Mac because .cargo/config.toml has CPU architecture set to haswell HOT 2
- No variant or associated item named `Member` found for enum `serenity::all::Action` in the current scope. HOT 4
- Error in CurrentApplicationInfo causing crash in certain case
- Messages should be truncated from cache when `Settings::max_messages` is lower than current cached messages
- CreateAttachment's item-level documentation is outdated HOT 1
- New `MessageType` documented
- Invalid Type Error HOT 3
- I don't receive the GuildCreate and GuildDelete events (for when the bot joins / gets kicked from a guild) HOT 3
- Proposal: Icon Change HOT 3
- set_presence from outside an event / command? How can I access serenity's Context from an outside event loop so i can change the presence? HOT 2
- Update to the monetization API
- little spelling error in the implementation of MessageReaction Struct HOT 1
- Message Command fails on messages with reactions (Unknown Event) HOT 1
- Serenity won't accept Discord Token no matter what HOT 1
- Rust panics when fetching messages in a channel and one of the messages has a reaction. HOT 1
- Reaction Event Handlers Not Dispatching HOT 4
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 serenity.