# html-embed Attributes

You can pass custom attributes to the <widgetbot> element, to change the options when initializing it, for example:

<widgetbot
  server="299881420891881473"
  channel="355719584830980096"
  width="800"
  height="600"
></widgetbot>
1
2
3
4
5
6

# Available options

Definitions

type url = string

interface Attributes {
  // Server + channel IDs
  server: string
  channel?: string

  // The height and width. You can specify a number to
  // use pixels or use CSS units eg. 100%
  width?: number | string
  height?: number | string

  // Connect to a custom WidgetBot server (Only set this if you are explicitly told to)
  shard?: url
}

export default Attributes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17