Skip to content
New issue

Have a question about this 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

Typings File Enhancements #558

Merged
merged 13 commits into from Nov 16, 2019
Merged

Conversation

Skillz4Killz
Copy link
Contributor

@Skillz4Killz Skillz4Killz commented Nov 15, 2019

This PR brings about a few fixes to the typings file.

  1. Several constants were missing and were not typed strictly allowing potential bugs or just bad quality of life for developers. As an example, now we will have easy access to autocompletion for most constants.
    image
    image

  2. Member typings that were discussed in Prevent Member.activities to be overriden by undefined values #555 have also been patched. Note: I don't used these in depth, so I am not 100% if it is perfect. Would love any reviews from those that use Activities in their bots. The typings I made came from evals I ran on my server with my bot.

image

  1. Fixes channelCreate typings by allowing the passing of channelCreate options. Until the parentID is removed, we can keep the string option as well.

  2. Since this became quite a bunch of fixes into the typings file, I decided to take the initiative and try to add some more consistency to the files. Please let me know how you feel about these changes. I believe they help make typings much easier to read and maintain going forward.
    a. Remove the redundant public on everything. This is by default anyway, plus we have nothing labelled private here.
    b. Consistent spacing and formatting in the entire line.
    c. Sometimes lines/props were being separated with ; and other times with , so I made them all use ; to keep consistant

Copy link
Contributor

@eritbh eritbh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looked over all the commits other than the massive purely stylistic ones, the additions LGTM 👍

@abalabahaha abalabahaha merged commit 1fe6dd2 into abalabahaha:dev Nov 16, 2019
@Skillz4Killz Skillz4Killz deleted the rewrite-typings branch November 16, 2019 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants