nyxx-discord / nyxx

Wrapper around Discord API for Dart
Apache License 2.0
326 stars 49 forks source link

Fix case where `ApplicationCommand.integrationTypes` is null #647

Closed MCausc78 closed 5 months ago

MCausc78 commented 5 months ago

Description

[Docs](https://github.com/discord/discord-api-docs/blob/main/docs%2Finteractions%2FApplication_Commands.md#Application_Command_Structure) ## Connected issues & other potential problems None ## Type of change - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) # Checklist: - [x] Ran `dart analyze` or `make analyze` and fixed all issues - [x] Ran `dart format --set-exit-if-changed -l 160 ./lib` or `make format` and fixed all issues - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] I have added tests that prove my fix is effective or that my feature works </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/l7ssha"><img src="https://avatars.githubusercontent.com/u/23033957?v=4" />l7ssha</a> commented <strong> 5 months ago</strong> </div> <div class="markdown-body"> <p>@abitofevrything can this be release as 6.2.1?</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/abitofevrything"><img src="https://avatars.githubusercontent.com/u/54505189?v=4" />abitofevrything</a> commented <strong> 5 months ago</strong> </div> <div class="markdown-body"> <p>Should be able to yes.</p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>