我试图设置一个交互端点,但验证不起作用。
@csrf_exempt
def discord_endpoint(request):
return JsonResponse({'type':1})
字符串
我突突道:
Validation errors:
interactions_endpoint_url: The specified interactions endpoint url could not be verified.
型
在我的Django应用程序中,作为discord的post响应:
b'{"application_id":"...","entitlements":[],"id":"...","token":"...","type":1,"user":{"avatar":"...","avatar_decoration":null,"discriminator":"0","global_name":"...","id":"...","public_flags":0,"username":"nickname"},"version":1}'
型
1条答案
按热度按时间b5lpy0ml1#
我找到了答案:
字符串