8000 `UserBehavior#getDmChannelOrNull()` is useless · Issue #1005 · kordlib/kord · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

UserBehavior#getDmChannelOrNull() is useless #1005

New issue

Have a question about this 8208 project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
zTrap opened this issue Apr 5, 2025 · 0 comments
Open

UserBehavior#getDmChannelOrNull() is useless #1005

zTrap opened this issue Apr 5, 2025 · 0 comments

Comments

@zTrap
Copy link
zTrap commented Apr 5, 2025

UserBehavior#getDmChannelOrNull() is absolutely useless because of 403 error with code 50007 appears only when bot is trying to send message in DM, not when get a DM channel. My proposal is, move this behavior to extensions for DmChannel:

  • DmChannel#createMessageOrNull()
  • DmChannel#createEmbedOrNull()

If you'll agree with this, I can make PR with this changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0