---
description: Get is to get the value stored in a specific identifier, also known as key.
---

# Get

Example:

{% tabs %}
{% tab title="Basic Usage" %}
```javascript
db.get('bio.name');
// output => Lason
```
{% endtab %}

{% tab title="Discord Bot" %}
Similar to the previous example: -

```javascript


const Discord = require('discord.js');
const db = require('hive-db');
 
 run = async (message, args, client) =>{
 message.channel.send('Enter your name');
 db.set('name', args[0]);
 }

//Trigger function using get! 

const Discord = require('discord.js');
const db = require('hive-db');
 
 run = async (message, args, client) =>{
 message.channel.send('Your name is \t'+db.get('name'));
 }
 /*
 You can do only user based values that are unique for example, to remember
 the name of some users db.set(`name_${message.author.id}`, args[0]), because 
 discord user ids are unique, same goes with guild values!
 */
```
{% endtab %}
{% endtabs %}
