Tip of the day: The blacklist { } block can be used to ban known troublemakers that are listed in blacklists like EfnetRBL and DroneBL.

JSON-RPC:Channel Object

From UnrealIRCd documentation wiki
Jump to navigation Jump to search
Detail level Variable Description Example value
0+ name The name of the channel #five
1+ creation_time Date/time the channel was first created 2022-05-23T11:02:13.000Z
1+ num_users Number of users in the channel. Note that in case of client part/kick this will be the count before the part/kick happened. 1
1+ topic Topic of the channel (if a topic is set) Welcome everyone
1+ topic_set_by Name of the user who set the topic (if a topic is set) Syzop
1+ topic_set_at Date/time when the topic was set (if a topic is set) 2022-05-23T1:30:00.000Z
1+ modes Channel modes that are set (not including list modes) ntf [4j#R1,5m#M1,3n#N1,3t#b1]:2
2+ bans List of all bans (+b) in the channel [{"name": "some!nice@ban","set_by": "some_user","set_at": "2023-01-04T07:52:54.000Z"}]
2+ ban_exemptions List of all ban exceptions (+e) in the channel [{"name": "some!nice@exempt","set_by": "some_user","set_at": "2023-01-04T07:52:54.000Z"}]
2+ invite_exceptions List of all invite exceptions (+I) in the channel [{"name": "some!nice@invex","set_by": "some_user","set_at": "2023-01-04T07:52:54.000Z"}]
3 members List of members (nicks) that are in the channel - simple [{"level": "o", "name": "one", "id": "001QMQ00B"}, {"name": "two", "id": "001TKVY0A"}]
4 members List of members (nicks) that are in the channel - more details [{"level": "o", "name": "one", "id": "001QMQ00B", "hostname": "localhost", "ip": "127.0.0.1", "details": "one!test@localhost"}, {"name": "two", "id": "001TKVY0A", "hostname": "localhost", "ip": "127.0.0.1", "details": "two!~x@localhost"}]
5 members List of members (nicks) that are in the channel - almost completely expanded. Only the members.user.channels object is NOT added. That field would otherwise show all the channels the user is in, which is generally not useful if you are using channel.* API calls. Too big to show here
6 members Don't use this level, it's for JSON logging only. Don't use this level
7 members List of members (nicks) that are in the channel - completely expanded, not recommended. Too big to show here