# Commands

embed-api commands (client events) are used to control the state of the embed.

The navigate command changes the active channel of the embed.

Usage

embed.emit('navigate', {
  guild: '299881420891881473',
  channel: '368427726358446110'
})
1
2
3
4

# login

The login command requests the user to log in, if they aren't already logged in. It will show a guest login modal or a Discord login button, depending on whether the guild has guests enabled.

Usage

embed.emit('login')
1

# logout

The logout command logs the user out, if they are logged in.

Usage

embed.emit('logout')
1

# Demo