Intitial release
This commit is contained in:
parent
299038fbc7
commit
fa8caa5116
21 changed files with 1234 additions and 0 deletions
15
utils/webhook_util.py
Normal file
15
utils/webhook_util.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
from typing import List
|
||||
|
||||
from model.common_models import DecompileResult
|
||||
|
||||
def validate_webhooks(webhooks: List[str], tags: List[str], sha256: str = "") -> DecompileResult:
|
||||
valid_webhooks = []
|
||||
invalid_webhooks = []
|
||||
|
||||
for webhook in webhooks:
|
||||
if webhook and len(webhook) >= 10: # Simple validation - real implementation would check with Discord API
|
||||
valid_webhooks.append(webhook)
|
||||
else:
|
||||
invalid_webhooks.append(webhook)
|
||||
|
||||
return DecompileResult(invalid_webhooks, valid_webhooks)
|
Loading…
Add table
Add a link
Reference in a new issue