Comments (1)
This looks like a bug to me, webhook and roles are not structurally compatible. If you call this method and check the return value, you should see that most fields are default initialized. (I haven't tested this myself).
Docs:
https://discord.com/developers/docs/resources/webhook#modify-webhook
https://discord.com/developers/docs/resources/webhook#modify-webhook-with-token
There are also some missing fields on the webhook struct (last 3 from https://discord.com/developers/docs/resources/webhook#webhook-object) and a missing webhook type Application (3) if you want to do some updates for that in a separate PR.
from discordgo.
Related Issues (20)
- When editing a message, does it support changing the message to be visible only to the current user? HOT 1
- midjourney how to get the error information like 'Invalid request' #1 HOT 1
- Missing Permissions for `GuildMemberTimeout` HOT 2
- How to use Discord's reconnection mechanism?
- MessageComponent button getting invalid response if emoji isn't specified HOT 1
- Occasionally errors will occur when calling discordgo.Session.InteractionRespond HOT 5
- Panics when handling presences HOT 2
- Modal Submission not sending field data HOT 1
- Version is error HOT 1
- User installs seem to not work yet HOT 3
- Custom websocket close handler
- Registering slash commands HOT 2
- My bot is not getting an activity when attempting to use UpdateStatusComplex() HOT 2
- Updating Files with InteractionRespond will not delete old or existing files HOT 1
- I can't verify requests for Discord interactions URL properly HOT 2
- Add "video" for ChannelVoiceJoin HOT 3
- Update golang.org/x/crypto to v0.22.0 and Minimum Go Version to 1.18 to Address Security Vulnerabilities
- discordgo.User.AvatarURL("512") panics HOT 3
- OAuth2 support missing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discordgo.