Skip to content

Update DiscordClient to return a DiscordDmChannel if appropriate

Mateusz Brawański requested to merge github/fork/VelvetThePanda/master into master

Created by: VelvetThePanda

Make sure you familiarize yourself with our contributing guidelines.

Summary

Added a return for DiscordDmChannel instead of DiscordChannel

Details

Build 793 fixed an issue with v8 not sending the channel object in DMs, however various places in the codebase type-check for a DiscordDmChannel, and 793 only provides a DiscordChannel, which causes various checks to fail.

Changes proposed

Return DiscordDmChannel if the guild is null, else return a regular channel

Notes

Any additional notes go here.

Merge request reports

Loading