MCPcopy Create free account
hub / github.com/Botloader/botloader / checkCreatedRole

Function checkCreatedRole

integration-tests/roles.ts:18–23  ·  view source on GitHub ↗
(role: Discord.Role)

Source from the content-addressed store, hash-verified

16const deletedRole = script.createStorageVarJson<string>("roles_ts_deleted")
17
18function checkCreatedRole(role: Discord.Role) {
19 assertExpected(role.color, 0xff0000)
20 assertExpected(role.hoist, true)
21 assertExpected(role.permissionsRaw, role_perms_create.toString())
22 assertExpected(role.mentionable, false)
23}
24
25function checkEditedRole(role: Discord.Role) {
26 assertExpected(role.color, 0xff0000)

Callers 1

roles.tsFile · 0.85

Calls 2

assertExpectedFunction · 0.90
toStringMethod · 0.80

Tested by

no test coverage detected