mirror of
https://github.com/danbulant/discord.js
synced 2026-07-06 03:31:03 +00:00
Fix query.js to properly deal with users with spaces in their name.
This commit is contained in:
parent
365746f288
commit
7fd5f8f5a6
1 changed files with 7 additions and 7 deletions
|
|
@ -20,7 +20,7 @@ myBot.on( "message", function( message ) {
|
||||||
|
|
||||||
// Get the first argument specifically, as it contains the username
|
// Get the first argument specifically, as it contains the username
|
||||||
// to be queried for.
|
// to be queried for.
|
||||||
var username = arguments[1];
|
var username = arguments.slice( 1 ).join( " " );
|
||||||
|
|
||||||
// Exit the event handler unless the user exists.
|
// Exit the event handler unless the user exists.
|
||||||
if( !username ) {
|
if( !username ) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue