mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-04 07:47:10 +01:00 
			
		
		
		
	Copy all channels to a seperate list before iterating
This commit is contained in:
		@@ -69,7 +69,8 @@ class Titan(discord.Client):
 | 
				
			|||||||
            return
 | 
					            return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        print("working on this...")
 | 
					        print("working on this...")
 | 
				
			||||||
        for channel in self.get_all_channels():
 | 
					        all_channels = list(self.get_all_channels())
 | 
				
			||||||
 | 
					        for channel in all_channels:
 | 
				
			||||||
            try:
 | 
					            try:
 | 
				
			||||||
                if str(channel.type) == "text":
 | 
					                if str(channel.type) == "text":
 | 
				
			||||||
                    print("Processing channel: ID-{} Name-'{}' ServerID-{} Server-'{}'".format(channel.id, channel.name, channel.server.id, channel.server.name))
 | 
					                    print("Processing channel: ID-{} Name-'{}' ServerID-{} Server-'{}'".format(channel.id, channel.name, channel.server.id, channel.server.name))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user