Skip to content

Commit 3dce126

Browse files
committed
chore: update radio exports
1 parent 27dad22 commit 3dce126

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

pages/radio/devdocs.mdx

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,28 @@ local removed = exports["zerio-radio"]:RemoveChannel(frequency)
7070

7171
This export would remove a channel from zerio-radio. Or, in other words, make it fully "unlocked" meaning anyone can join it.
7272

73+
#### UpdateChannelLabel
74+
75+
```lua
76+
local success = exports["zerio-radio"]:UpdateChannelLabel(frequency, label)
77+
```
78+
79+
This export would update the label of a radio channel.
80+
7381
#### GiveAccessToChannel
7482

7583
```
76-
local success = exports["zerio-radio"]:GiveAccessToChannel(frequency, value)
84+
local success = exports["zerio-radio"]:GiveAccessToChannel(frequency, accessType, value)
7785
```
7886

79-
This export would grant a new value access to a specific channel. Forexample, if you have a channel locked to jobs. This would add a new job to the access list. If you have a channel locked to identifiers, it would add a new identifier.
87+
This export would grant a new value access to a specific channel.
88+
The `accessType` would be the kind of access you wish to add, forexample `"jobs"`, `"discordRoles"` or so on.
8089

8190
#### RemoveAccessFromChannel
8291

8392
```lua
84-
local removed = exports["zerio-radio"]:RemoveAccessFromChannel(frequency, value)
93+
local removed = exports["zerio-radio"]:RemoveAccessFromChannel(frequency, accessType, value)
8594
```
8695

8796
This export would remove access to a specific value from the channel. Or in other words, forexample removing a specific job's, identifier's or such's access.
97+
The `accessType` would be the kind of access you wish to add, forexample `"jobs"`, `"discordRoles"` or so on.

0 commit comments

Comments
 (0)