Am i able to get a list of all webhook URLs in a discord server using discord.py or another Discord bot python library? Sorry that this is so short im not sure what other information i could provide for my question.
I have also tried the following.
import discord
client = command.Bot()
@client.event
async def on_message(message):
message.content.lower()
if message.author == client.user:
return
if message.content.startswith("webhook"):
async def urls(ctx):
@client.command()
async def urls(ctx):
content = "\n".join([f"{w.name} - {w.url}" for w in await ctx.guild.webhooks()])
await ctx.send(content)
client.run('tokennumber')