Role

Role

new Role(obj, client)

Source:
Properties:
Name Type Description
id Int
name String
color String
colour String Proxy for color.
priority Int Role position.
permissions Permissions
hoisted Bool Whether it's displayed on the sidebar.
Parameters:
Name Type Description
obj Object
client Object

Methods

delete() → {Promise}

Source:
Returns:
Type
Promise

edit(properties) → {Promise}

Source:
See:
Parameters:
Name Type Description
properties Object Can either use the DMC.wrap or DMC.chat API names, but they need to be the same format as in the DMC.chat API docs. DMC.wrap names are listed below.
Properties
Name Type Description
name String
colour String
priority Int
hoisted Bool
globalPerms String
baseChannelPerms String
Returns:
Type
Promise