mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Fix query.js to properly deal with users with spaces in their name.
This commit is contained in:
@@ -20,7 +20,7 @@ myBot.on( "message", function( message ) {
|
||||
|
||||
// Get the first argument specifically, as it contains the username
|
||||
// to be queried for.
|
||||
var username = arguments[1];
|
||||
var username = arguments.slice( 1 ).join( " " );
|
||||
|
||||
// Exit the event handler unless the user exists.
|
||||
if( !username ) {
|
||||
|
||||
Reference in New Issue
Block a user