or run

npx @tessl/cli init
Log in

Version

Tile

Overview

Evals

Files

Files

docs

administration.mdassets.mdchannels.mdchat.mddirect-messages.mdgroups.mdindex.mdintegrations.mdlivechat.mdmiscellaneous.mdpermissions.mdroles.mdrooms.mdsettings.mdstatistics.mdsubscriptions.mdteams.mdusers.md

assets.mddocs/

0

# Assets

1

2

Server asset management for uploading and managing custom assets like logos, favicons, and other server branding elements.

3

4

## Capabilities

5

6

### Asset Management

7

8

```python { .api }

9

def assets_set_asset(self, asset_name, file, **kwargs):

10

"""

11

Set/upload a server asset.

12

13

Parameters:

14

- asset_name (str): Asset name (logo, favicon, etc.)

15

- file (str): File path to upload

16

17

Returns:

18

requests.Response: Asset upload result

19

"""

20

21

def assets_unset_asset(self, asset_name, **kwargs):

22

"""

23

Remove/unset a server asset.

24

25

Parameters:

26

- asset_name (str): Asset name to remove

27

28

Returns:

29

requests.Response: Asset removal result

30

"""

31

```

32

33

## Common Asset Types

34

35

```python { .api }

36

AssetTypes = [

37

"logo", # Server logo

38

"favicon", # Favicon

39

"background", # Background image

40

"loginBackground" # Login background

41

]

42

```

43

44

## Usage Examples

45

46

```python

47

# Upload server logo

48

result = rocket.assets_set_asset(

49

asset_name='logo',

50

file='/path/to/logo.png'

51

)

52

53

# Upload favicon

54

rocket.assets_set_asset(

55

asset_name='favicon',

56

file='/path/to/favicon.ico'

57

)

58

59

# Remove asset

60

rocket.assets_unset_asset('background')

61

```