EQUENOS / dislash.py

A Python wrapper for discord slash-commands and buttons, designed to extend discord.py.

Home Page:https://dislashpy.readthedocs.io/en/latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unknown Webhook when ApplicationID no equal UserID

yamikaitou opened this issue · comments

commented

I've only messed with Buttons, but I consistently get Unknown Webhook on one bot. Someone else suggested that it is likely due to the Bot's UserID not being the same as the ApplicationID. In this case, that is true. The App was originally personal but was moved to a team, so that is likely when it changed. Maybe I'm missing something, I haven't fully explored everything yet

Jun 16 02:15:32 python[407319]: Traceback (most recent call last):
Jun 16 02:15:32 python[407319]:   File "/mnt/discord/red-data/scgc/cogs/CogManager/cogs/rps/rps.py", line 143, in on_rock
Jun 16 02:15:32 python[407319]:     await inter.reply(type=ResponseType.DeferredUpdateMessage)
Jun 16 02:15:32 python[407319]:   File "/mnt/discord/red-data/scgc/cogs/Downloader/lib/dislash/interactions/interaction.py", line 204, in reply
Jun 16 02:15:32 python[407319]:     return await self.fetch_initial_response()
Jun 16 02:15:32 python[407319]:   File "/mnt/discord/red-data/scgc/cogs/Downloader/lib/dislash/interactions/interaction.py", line 392, in fetch_initial_response
Jun 16 02:15:32 python[407319]:     data = await self._client.http.request(
Jun 16 02:15:32 python[407319]:   File "/home/red/envs/scgc/lib/python3.8/site-packages/discord/http.py", line 250, in request
Jun 16 02:15:32 python[407319]:     raise NotFound(r, data)
Jun 16 02:15:32 python[407319]: discord.errors.NotFound: 404 Not Found (error code: 10015): Unknown Webhook

Does your bot indeed have a different ID from application ID? Honestly, I didn't know this is possbile
I use client.user ID in all http-requests, so I see the issue now...
Tanks for reporting this, I'll fix this as soon as possible.

commented

Yup, the IDs are indeed different
Screenshot_20210616-065029.png

Upgrade to v1.0.17, this should be fixed now

commented

Confirmed, it is working now. Thanks