Question: How can i select and compare x or y element value from a svg rect in jquery?

svg looks like this:

```
<svg id="demo" width="100%" height="40" version="1.1" xmlns="http://www.w3.org/2000/svg">
        <rect id="stretchy" x="20" y="40" width="100%" height="40" fill="#b7b7b7" stroke-width="5"></rect>
        <text x="50%" y="50%" font-family="Verdana" font-size="20" text-anchor="middle" dy=".3em"> text </text>
    </svg>

```

I wanna use it in something like this:

```
if($('#stretchy').css('x')!='20'){
code
}

```

Answer: 
[![I Tested this some time ago.](https://i.stack.imgur.com/RcmaS.png)](https://i.stack.imgur.com/RcmaS.png)

And what I found was, it returns an object, not a mention, and as you can't send an object, it will return as an empty message error.  

So to send a mention, you send:

```
// Getting the first and second users
const allMentioned = message.mentions.users.array()
// First User `[0]`
const firstUser = allMentioned[0];
// Second User `[1]`
const secondUser = allMentioned[1];
// And so on and so forth...

// Add `<@` to the begginning of the id and `>` to the end of it to make a mention.
const mentionSecondUser = "<@" + secondUser.id + ">";
// Sending a message using the fetched property
message.channel.send(`Hey ${mentionSecondUser}, or whatever.`);

```

Alternatively, you can try using the other fetched properties using the following format, received from getting the property, say `secondUser`:

```
User {
  id: '<secondUser's id>',
  username: '<secondUser's username>',
  bot: <true if secondUser a bot>,
  discriminator: '<secondUser's discriminator>',
  avatar: '<secondUser's avatarId>',
  lastMessageID: <secondUser's lastMessageId>,
  lastMessageChannelID: <secondUser's lastMessageChannelId>,
  flags: UserFlags { bitfield: 0 }
}

```

An example of this is in the picture showed above.
You can use:

```js
message.mentions.users.array()[1]

```

To get the second user in a message. Appropriately, use `[2]` for the third, `[3]` for the fourth, and so on.