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
)
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)
How to prevent a token created with OAuth 2.0 from expiring?
I am trying to solve this problem:
I want to compute the difference between every element in a Python list of equally long lists and put it into a Numpy array
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
I built my first selenium on a mac machine, so with help of chromedriver, I see a new tab opened by my script