Open Warfront1 opened 2 years ago
You can't add members to a role when they aren't in the server.
Imagine you're setting file permissions, what do you think would happen if you tried to set the owner of a file to a user that doesn't exist?
You can't add members to a role when they aren't in the server.
Imagine you're setting file permissions, what do you think would happen if you tried to set the owner of a file to a user that doesn't exist?
To answer your question, the user creation would scripted out, and set as a dependency of the file permission.
The use case I provided is very common, and causes for a very broken terraform automation process. At the very least, I am looking for the intended guidance on what to do in such a situation.
For example, is the recommendation that you:
When trying to reference a
user_id
in adiscord_member_roles
, there seems to be no handling for discord_members that are not part of the discord server?Sample terraform:
Ouput:
This becomes problematic especially when first creating your discord server, as you can't assign roles prior to having a member join the newly created server. In addition, your apply could easily break if the user you are attempting to modify a role for leaves the server themselves.