# Dazai Quickstart

(No Dark Mode because I'm broke lmao)

Thank you for inviting Dazai into your server, you might now be wondering how to use Dazai. By following this *seemingly* basic tutorial.

### Setting up a server prefix

Think `daz COMMAND` is too long? There is a way to change your prefix. You can use

```
daz settings prefix NEWPREFIX
```

For example, If I wanted my prefix to be `d!` , I would need to do `daz settings prefix d!`


# Permissions

Permissions can look quite complicated at first but can be learned relatively easily and provides an easy and reliable way to give certain non-admin users permissions.

### What is a permission / permission node?

A permission/permission node is the required permission that a user must have to execute a command. This is not to be confused with regular Discord permissions which (with the exception of the Administrator permission) does not affect whether or not you can execute a command.

### Groups

Permissions with Dazai is a group/roles system. There are at the moment 5 different permission groups possible. They are:

* Everyone (Default)
* DJ
* Extra Role 1
* Moderator
* Extra Role 2
* Admin (Anyone with Administrator Permissions in their roles will also gain this permission set)

### Be careful of who you give admin to!

Aside from very few Server Owner only commands, admins have essentially every permission unlocked. This allows them to execute almost any command! Make sure you vet the people who you give the admin role to!&#x20;

### Permissions Inheritance

Permission groups will actually inherit permissions from groups below them. The chain of inheritance goes Everyone => DJ => Extra Role 1 => Moderator => Extra Role 2. This means that even if a user does not have the role associated with DJ, if they have a role associated with Extra Role 1, Moderator or Extra Role 2, they will gain the DJ permission set.

### List of Permissions

{% embed url="<https://dazai.app/permissions/>" %}

### How to actually modify permissions

Now that you learned about what permissions actually are, it is time to apply your knowledge to manage Dazai in your server better! There are 2 ways to manage permissions. One is from the [Web Panel](/web-panel-help/webpanel-quickstart) and the other is by the permissions command.


# Misc


# Vote

Just returns the link to vote with

```
daz vote
```


# Credits

Shows info about who made the bot.

```
daz credits
```


# Bot Stats

Displays the Shard stats (

```
daz botstats
```

#### Aliases&#x20;

```
daz bs

```


# Curve

viewCurve

With Dazai's levelling system, the amount of XP given each time decreases exponentially by default and can be customized. To view how much XP you gain, you can do&#x20;

```
daz curve
```

which allows you to see how much the curve has curved for you and how much you can still gain each time. To modify the curve, try

```
daz curve set NEWCURVE
```

replacing **NEWCURVE** with a value between 0 and 9. To disable levelling entirely and "freeze" levelling, you can try setting **NEWCURVE** to 0. For no curving, you can set curving to **1**.&#x20;

{% embed url="<https://www.desmos.com/calculator/yxboetkaxn>" %}
Amount of XP gained (y), How many times the user gained xp within the last 24h (x)
{% endembed %}


# Follow

admin

Subscribes to Dazai's update feed.

```
daz follow
```


# Fun


# Wholesome

notlewd

Gets a "Wholesome" image from an alleged Safe for Work image site.

```
daz wholesome Dazai_Osamu
```

#### Aliases

```
daz notlewd Dazai_Osamu
```


# UwUSpeak

uwuspeak

Converts incoming messages into UwU in the specified channel. This can also be targeted to a specific individual by assigning them the role **UwUSpeak** (case sensitive).


# Urban Dictionary

urban

Looks up a word from Urban Dictionary for uh the more *Modern & Cultured* folks.

```
daz urban Dazai
```

#### Aliases

```
daz ud Dazai
```


# Top

Displays the most active users(highest XP) in a leaderboard!&#x20;

```
daz top
```

&#x20;


# Flushify

flushify

Basically tries to merge 😳 with other images/emojis. I dont even know why we added it.

Examples:

{% tabs %}
{% tab title="Sunglasses + Flushed" %}
![](/files/-MVJcq1hdpPKE_MlHlLG)
{% endtab %}

{% tab title="Angry + Flushed" %}
![](/files/-MVJcnfxcnyup0j9AMqB)
{% endtab %}

{% tab title="Puke + Flushed" %}
![](/files/-MVJcaIo-IVQCXZeCvcc)
{% endtab %}
{% endtabs %}

```
daz flushify :sunglasses:
daz flushify :EMOTE:
```


# Utilities

Dazai also offers some basic utilities to make your life easier!&#x20;


# Rip Emote

ripEmote

Jealous of another server's emote? Well now you can "rip" it and add it into your server! You can either specify a message link containing the emote(Copy the message link by shift + hovering over the message and pressing the link icon) or if you have nitro, use the emote yourself

```
daz ripemote
```


# Report

Report a bug. You can choose to show context (Much more helpful) or not by changing the first parameter to yes or no respectively. You can also attach additional comments at the end to help us out. Abuse of this feature may get you blacklisted.

```
daz report yes
daz report no
daz report yes I was just using the bot but then it suddenly commited suicide.
```


# Nick

nickLock

This will set a person's nickname and "Lock" it to the value specified. Please make sure the highest role Dazai has is greater than the role of the person you are trying to Nickname lock(Because the owner of the server has the highest unmodifiable rank, it is impossible to nick lock the owner).

```
daz nick @User NewNickname
daz nick @User $$clear
daz nick @Degenetet Teto
```


# Snipe

snipe

Each time this command is run, the latest deleted message is returned with its original content. **EACH MESSAGE EDIT IS "SNIPED" ONCE, MEANING YOU CANNOT SNIPE IT AGAIN.** **MASS PURGES ALSO DO NOT GET STORED**. Maximum of 250 deleted messages per channel. Dazai will automatically remove the oldest messages upon new deleted messages.

```
daz snipe
```


# Edit Snipe

esnipe

Each time this command is run, the latest edited message is returned with its original content. **EACH MESSAGE EDIT IS "SNIPED" ONCE, MEANING YOU CANNOT SNIPE IT AGAIN.** Maximum of 250 edited messages per channel. Dazai will automatically remove the oldest messages upon new edits.

```
daz editsnipe
```

#### Aliases

```
daz esnipe
```


# Purge

purge

Removes X messages from chat.

```
daz purge AMOUNT
```

#### Aliases

```
daz nuke AMOUNT
daz clean AMOUNT
```


# Music / Voice

Dazai offers many music related commands for you to enjoy! To get started just join a VC and do daz play \<Song name>!

{% content-ref url="/pages/-MU0Cke\_S5U-FAlCQwJX" %}
[Play](/music-commands/music/play)
{% endcontent-ref %}

{% content-ref url="/pages/-MUAT4FiYj3\_2RRgjk3s" %}
[Queue](/music-commands/music/queue)
{% endcontent-ref %}

{% content-ref url="/pages/-MUAV4xPDPkVSoJhSgqh" %}
[Now Playing](/music-commands/music/now-playing)
{% endcontent-ref %}

{% content-ref url="/pages/-MUAYRq7Xc9B3\_OzgnOT" %}
[Vote Skip](/music-commands/music/vote-skip)
{% endcontent-ref %}

{% content-ref url="/pages/-MUA\_1T8UkylAAp07qJU" %}
[Force Skip](/music-commands/music/force-skip)
{% endcontent-ref %}

{% content-ref url="/pages/-MUAXcBniHbTvy8qdo\_j" %}
[Pause](/music-commands/music/pause)
{% endcontent-ref %}

{% content-ref url="/pages/-MUAYZBOaHiX43Jd\_hWh" %}
[Resume](/music-commands/music/resume)
{% endcontent-ref %}

{% content-ref url="/pages/-MUAVxel0H6aSQViYPuH" %}
[Remove a song from queue](/music-commands/music/remove-a-song-from-queue)
{% endcontent-ref %}


# Disconnect

forceDC

Disconnects the bot from the vc. This will clear the Queue. **IF YOU HAVE ANY ISSUES WITH THE MUSIC AND THE BOT, IT IS RECOMMENDED YOU TRY TO DISCONNECT IT FIRST WITH THIS COMMAND**

```
daz disconnect
```

#### Aliases

```
daz dc
```


# Ephemeral Lounges

pvc

Ephemeral Lounges or Private Voice Lounges are voice lounges specifically designed to create a temporary voice channel, moving everyone in the current room into a private voice channel. This voice channel cannot be accessed/joined by anyone whom is already not inside. **THIS INCLUDES ADMINS/OWNERS** and will automatically be deleted when everyone leaves the lounge. To start a Ephemeral/Private voice Lounge, just do

```
daz pvc
```


# Play

playSong

Plays a song given one of these parameters:<br>

* Search Query
* Youtube Link
* Spotify Link

```
daz play pheonix league of legends
daz play https://www.youtube.com/watch?v=tvHqaimwcKE
daz play https://open.spotify.com/track/0FuFovPx3x77CRFtt22Q3H?si=7yRBnYyDSI-JHJfvYSYgXg
```

#### Aliases

```
daz p pheonix league of legends
daz p https://www.youtube.com/watch?v=tvHqaimwcKE
daz p https://open.spotify.com/track/0FuFovPx3x77CRFtt22Q3H?si=7yRBnYyDSI-JHJfvYSYgXg
```

![](/files/-MU0zM15XcWHlrrE8vx0)


# Queue

daz queue

Returns the queue. No parameters required

```
daz queue
```

#### Aliases

```
daz q
```


# Now Playing

No Permission Required

Returns a pretty card with details about whats playing and the approximate location the song is at.

```
daz nowplaying
```

#### Aliases

```
daz np
```


# Vote Skip

No Permission Required

Votes with everyone in the Voice Call to skip the current song. Total amount of people skipped must be greater than the number of people in the Voice Call plus one divided by two (modeled in equation below where S is the number of people who are skipping, n is the total # of people in the Voice Call. This equation must be true in order to skip the song). If you do not wish to accumulate a majority of votes, you may try the Privileged Force Skip

$$
S > (n+1)/2
$$

```
daz voteskip
```

#### Aliases

```
daz vs

```


# Force Skip

skipSong

This instantly forces a skip, bypassing voting for skips ( Basically counts as ∞ skips). This is however a privileged skip as by default it is given to the DJ role.

```
daz forceskip
```

#### Aliases

```
daz fs
```


# Pause

pauseMusic

Pause the song currently playing!(Note it will stay paused until you unpause it with [Resume](/music-commands/music/resume))

```
daz pause
```


# Resume

resumeMusic

Resumes playing music after a [Paused](/music-commands/music/pause) state.

```
daz resume
```


# Remove a song from queue

removeFromQueue

Removes a song from queue given the **INDEX (NOT THE SONG NAME).** You can find the index of a song by calling the queue command and finding the position of the song. Please note removing song shifts the indexes afterwards up by one!

![In this image, Platinum Mukatsuku is in position #1 so to remove it, do daz remove 1. To remove Aizuchi do daz remove 2 and so on](/files/-MUAX4UWpqWOZZi0UE44)

```
daz remove 1
daz remove 2
```


# Settings

Need more customization? No problem! Dazai has a bunch of useful settings commands that can help tailor your experience with Dazai!


# Setting Up Custom Messages

admin

Sometimes, you want to welcome a new member to your discord server or change what Dazai says when you level up. You can do these with **Message Events**. To start off, there are currently 4 implemented events:

1. &#x20;Join Message (`join`)
2. DM Message on Join (`joinDM`)
3. Leave Message (`leave`)
4. Levelup message (`levelup`)

With 5 custom variables

```
{USERNAME}	The user's username
{MENTION}	Pinging the user
{ID}	The ID of the User
{OLDLVL}	The level the user just passed (Only for Levelup Message)
{NEWLVL}	The level the user just got to (Only for Levelup Message)
```

To set the messages, you just need to do :

```
daz settings messageevent
```

This will enter the MessageEvent setup and guide you through setting up message events!

![](/files/-MVIgpGoPNCzy4TqxnqA)

![This is what join messages will look like if the same setup steps were followed](/files/-MVIgstlzVmiavQu_3V3)


# Setting up Reaction Roles

admin

Lets say you wanted to let people opt in to gain roles. You could do this with Dazai's Reaction Roles feature. By default, all servers have 50 Slots they can use. To start off, you are going to need to copy the message id of the message. You can do this by holding the `Shift` key and hovering over the message. You should see an extended set of buttons. Click on the button with the symbol ID. You should now have the Channel-Message ID pair copied.

![](/files/-MVIcPKYFjvFobOl0VpI)

Next, you want to type in

```
daz reactionrole create 
```

and append your copied ID to the command while replacing the dash with the space. (Ex: if your copied message id was`818582747219623967-818586912725401640`, you would change it to `818582747219623967 818586912725401640`).\
Next, specify what emote users should react to. The emote that you specify must either be a default discord emote(Usable in DMs without nitro) or a server emote. Make sure you have a space between the emote and message ID!. Finally, you can either ping the role you would like people to gain or find its ID. we recommend that you just ping the role as finding the ID requires Developer Mode.

![](/files/-MVIcfJvBhdB0If8tP1u)


# Setting Up Level Rewards

With Dazai's Levelling system, you can award roles for gaining levels much like bots MEE6 but without the cost! To start off, create a Level Reward by using the create a level reward command

```
daz settings levelreward create

```

Just answer the questions Dazai asks and you should be all set!

![Please note we do not advise giving out any admin permission roles via level rewards. Its just a bad idea.](/files/-MVIZRYnlt-rVEx2_mnQ)

To view level rewards just do

```
daz settings levelreward list
```

![](/files/-MVIZqYHDz7GZIuyx8v7)

Now lets say you messed up and did not intend to give a level reward. You can delete level rewards with the delete function

```
daz settings levelreward delete
```

![](/files/-MVI_zRY_ZQF5HP-c5G0)


# Creating a Level Reward

admin

Enters Level Reward creation mode.

```
daz settings levelreward create
```


# Viewing all Level Rewards

admin

Lists all level rewards.

```
daz settings levelreward list
```


# Deleting a Level Reward

admin

```
daz settings levelreward delete
```


# Changing Server Prefix

admin

Change the server prefix. By default, Dazai will only listen to `@Dazai` or `daz` . You can customize the prefix of the bot with daz settings prefix NEWPREFIX. Note that this only applies to the server.

```
daz settings prefix !
daz settings prefix .
daz settings prefix d!
```


# Toggling Beta Mode On/Off

admin

Allows to change between setting your server in "Beta Mode". Beta mode grants experimental and upcoming features that may be buggy.

```
daz settings mode BETA
daz settings mode NORMAL
```


# Binding permission groups to roles


# Admin

OWNER PERMISSION REQUIRED

Grants Dazai Admin privileges to this role. Warning: This role bypasses any permission based restriction except for owner only commands! Give this to people whom you deeply trust.

```
daz settings admin @admin
daz settings admin AdminRoleID
```


# Extra Role 2

admin

Binds the Extra Role 2 permission group to a certain role. see the [Permissions](/permissions#groups) section for more details.

```
daz settings extrarole @ExtraRole2ForPerms
daz settings extrarole ExtraRole2ForPermsRoleID
```


# Moderator

admin

Binds the Moderator permission group to a certain role. see the [Permissions](/permissions#groups) section for more details.

```
daz settings mod @Mod
daz settings mod ModRoleID
```


# Extra Role 1

admin

Binds the Extra Role 1 permission group to a certain role. see the [Permissions](/permissions#groups) section for more details.

```
daz settings extrarole @ExtraRoleForPerms
daz settings extrarole ExtraRoleForPermsRoleID
```


# DJ Role

admin

Binds the DJ permission group to a certain role. see the [Permissions](/permissions#groups) section for more details.

```
daz settings dj @DJ
daz settings dj DJRoleID
```


# Webpanel Quickstart

oooo webpanel, much webpanely

Welcome to the Webpanel for Dazai! To get started, go to&#x20;

{% embed url="<https://panel.dazai.app>" %}

and sign in with your Discord account.


# Manage Permissions from the Web Panel

Because Text GUIs can look bad sometimes


# Understanding a Commands page

![](/files/-MUAbs2a_t7dbBzH4hdq)


# Missing Permissions

Sometimes Dazai will error out during a command with the error message

```
DiscordRESTError [50013]: Missing Permissions
```

This means that you did not give Dazai the required permissions to execute the task. This can be fixed by giving Dazai the required permissions.

### Fixes for specific commands

#### Purge

Purge requires the Manage Message permission from Discord. To grant it permission, right click on the channel, go to Edit Channel then Permissions then click on advanced permissions. Next, click on the + button and type in Dazai and click on the bot that pops up.

![](/files/-MVsTha_MpK2D2M1W46M)

Afterwards, make sure to scroll down and check the Manage Messages permission & press save!

![](/files/-MVsUJ-TE1LLSHMDuWAh)


