added message content intent
This commit is contained in:
		@@ -419,13 +419,15 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
 | 
				
			|||||||
    let mut client = Client::builder(
 | 
					    let mut client = Client::builder(
 | 
				
			||||||
        &token,
 | 
					        &token,
 | 
				
			||||||
        if dm_enabled {
 | 
					        if dm_enabled {
 | 
				
			||||||
            GatewayIntents::GUILD_MESSAGES
 | 
					            GatewayIntents::MESSAGE_CONTENT
 | 
				
			||||||
 | 
					                | GatewayIntents::GUILD_MESSAGES
 | 
				
			||||||
                | GatewayIntents::GUILDS
 | 
					                | GatewayIntents::GUILDS
 | 
				
			||||||
                | GatewayIntents::GUILD_MESSAGE_REACTIONS
 | 
					                | GatewayIntents::GUILD_MESSAGE_REACTIONS
 | 
				
			||||||
                | GatewayIntents::DIRECT_MESSAGES
 | 
					                | GatewayIntents::DIRECT_MESSAGES
 | 
				
			||||||
                | GatewayIntents::DIRECT_MESSAGE_REACTIONS
 | 
					                | GatewayIntents::DIRECT_MESSAGE_REACTIONS
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            GatewayIntents::GUILD_MESSAGES
 | 
					            GatewayIntents::MESSAGE_CONTENT
 | 
				
			||||||
 | 
					                | GatewayIntents::GUILD_MESSAGES
 | 
				
			||||||
                | GatewayIntents::GUILDS
 | 
					                | GatewayIntents::GUILDS
 | 
				
			||||||
                | GatewayIntents::GUILD_MESSAGE_REACTIONS
 | 
					                | GatewayIntents::GUILD_MESSAGE_REACTIONS
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user