Closed dogue closed 1 year ago
I've put together a very very basic prototype based on the basic example, but the incoming message content is always an empty string.
use discord::model::Event; use discord::Discord; fn main() { let discord = Discord::from_bot_token( "REDACTED", ) .unwrap(); let (mut connection, _) = discord.connect().unwrap(); loop { match connection.recv_event() { Ok(Event::MessageCreate(message)) => { println!("{:#?}", message); } _ => {} } } }
Message { id: MessageId( 1045529789710213211, ), channel_id: ChannelId( REDACTED, ), content: "", nonce: Some( "1045529789252763648", ), tts: false, timestamp: 2022-11-25T02:42:06.871+00:00, edited_timestamp: None, pinned: false, kind: Regular, author: User { id: UserId( REDACTED, ), name: "dogue", discriminator: 5421, avatar: Some( "cdbbab50205e7052f74c58ff8a58b815", ), bot: false, }, mention_everyone: false, mentions: [], mention_roles: [], reactions: [], attachments: [], embeds: [], referenced_message: None, flags: (empty), }
I am stupid. Closing as user error.
I've put together a very very basic prototype based on the basic example, but the incoming message content is always an empty string.