Merge pull request #996 from theoddball/dev
Rotate Role Color needs ManageRoles permission.
This commit is contained in:
		@@ -25,6 +25,7 @@ namespace NadekoBot.Modules.Utility
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        [NadekoCommand, Usage, Description, Aliases]
 | 
					        [NadekoCommand, Usage, Description, Aliases]
 | 
				
			||||||
        [RequireContext(ContextType.Guild)]
 | 
					        [RequireContext(ContextType.Guild)]
 | 
				
			||||||
 | 
					        [RequireUserPermission(GuildPermission.ManageRoles)]
 | 
				
			||||||
        [OwnerOnly]
 | 
					        [OwnerOnly]
 | 
				
			||||||
        public async Task RotateRoleColor(int timeout, IRole role, params string[] hexes)
 | 
					        public async Task RotateRoleColor(int timeout, IRole role, params string[] hexes)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
@@ -344,4 +345,4 @@ namespace NadekoBot.Modules.Utility
 | 
				
			|||||||
                await JsonConvert.SerializeObject(grouping, Formatting.Indented).ToStream().ConfigureAwait(false), title, title).ConfigureAwait(false);
 | 
					                await JsonConvert.SerializeObject(grouping, Formatting.Indented).ToStream().ConfigureAwait(false), title, title).ConfigureAwait(false);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user