test12 / guild.py
alptangall's picture
Create guild.py
07a5759 verified
raw
history blame contribute delete
542 Bytes
import asyncio
async def getBasic(guild):
for category in guild.categories:
if 'streamlit' in category.name:
streamlitCate=category
for channel in category.channels:
if 'urls' in channel.name:
urlsCh=channel
elif 'raw' in channel.name:
rawCh=channel
return {'streamlitCate':streamlitCate if 'streamlitCate' in locals() else None,'urlsCh':urlsCh if 'urlsCh' in locals() else None,'rawCh':rawCh if 'rawCh' in locals() else None}