• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

createChannel can't set icon

b3rtNATION

New Member
Hey Guys,
I've written a script that automatically creates rooms if the given ones are full. It works completely fine except that the new created channels doesn't get an icon.
I assign it at creation with the channelParams as number, for example:
const channelParams = {name: channelName, parent: parentChannel, maxClients: maxClients, permanent: true, icon: 276905934, };
const newChannel = backend.createChannel(channelParams);
p.s. the icon is only hard coded for testing reasons
The icon ID made me a little sus, but I didn't find any other (also tried 1, 100, 200).
Does anyone have encountered that before?

Thanks
rob
 
Top