How do I display role members separately from online members?

80
April 02, 2022, at 01:20 AM

I searched for my problem in the API Reference, but I didn't find anything.

I want to add a role setting that "Displays role members separately from online members". Even if I can do that manually without programming, I just want to learn and apply it for fun.

This is just a part of my code:

name = discord.Permissions(
    send_messages = True, 
    read_messages = True
) 
await guild.create_role(
    name = "name",
    colour = discord.Colour(0x000000),
    permissions = name
) 
Answer 1

You can set the hoist parameter to True when creating your role as mentioned in the documentation.

name = discord.Permissions(send_messages=True, read_messages=True)
await guild.create_role(name="name",colour=discord.Colour(0x000000),permissions=name, hoist=True)
READ ALSO
Fast Python outer difference of list

Fast Python outer difference of list

I want to compute the difference between every element in a Python list of equally long lists and put it into a Numpy array

69
OpenCV VideoWriter Error "dimensions too large for MPEG-4"

OpenCV VideoWriter Error "dimensions too large for MPEG-4"

I have some frames (dimensions: 8192x2160) that are generated from concatenating two 4096x2160 frames side by sideWhen writing these frames to a video file using OpenCV VideoWriter, I get this error: dimensions too large for MPEG-4

89
What happens to selenium code simulating browser actiions when run in non GUI unix box? Will chrome windows open?

What happens to selenium code simulating browser actiions when run in non GUI unix box? Will chrome windows open?

I built my first selenium on a mac machine, so with help of chromedriver, I see a new tab opened by my script

104