Watch
1
0
Fork
You've already forked mautrix-discord
0
mirror of https://github.com/mautrix/discord.git synced 2026-08-22 12:04:54 -04:00
mautrix-discord/pkg/meowcord
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-08 12:08:17 +03:00
..
tools/cmd/eventhandlers meow: lint 2026-07-17 04:07:31 -07:00
components.go meow: sync discordgo 2026-08-03 06:18:41 -07:00
discord.go meow: import beeper fork 2026-07-14 11:36:09 -07:00
discord_test.go meow: import beeper fork 2026-07-14 11:36:09 -07:00
droid.go meow: import beeper fork 2026-07-14 11:36:09 -07:00
endpoints.go meow: import beeper fork 2026-07-14 11:36:09 -07:00
event.go meow: lint 2026-07-17 04:07:31 -07:00
eventhandlers.go meow: import beeper fork 2026-07-14 11:36:09 -07:00
events.go meow: import beeper fork 2026-07-14 11:36:09 -07:00
heartbeatsession.go meow: import beeper fork 2026-07-14 11:36:09 -07:00
interactions.go meow: lint 2026-07-17 04:07:31 -07:00
interactions_test.go meow: import beeper fork 2026-07-14 11:36:09 -07:00
launchsig.go meow: import beeper fork 2026-07-14 11:36:09 -07:00
launchsig_test.go meow: lint 2026-07-17 04:07:31 -07:00
locales.go meow: import beeper fork 2026-07-14 11:36:09 -07:00
logging.go meow: import beeper fork 2026-07-14 11:36:09 -07:00
message.go meow: import beeper fork 2026-07-14 11:36:09 -07:00
message_test.go meow: import beeper fork 2026-07-14 11:36:09 -07:00
oauth2.go meow: import beeper fork 2026-07-14 11:36:09 -07:00
oauth2_test.go meow: import beeper fork 2026-07-14 11:36:09 -07:00
ratelimit.go meow: lint 2026-07-17 04:07:31 -07:00
ratelimit_test.go meow: import beeper fork 2026-07-14 11:36:09 -07:00
README.md meowcord/wsapi: send standard Op 1 heartbeat for bot sessions 2026-08-08 12:08:17 +03:00
restapi.go meow: lint 2026-07-17 04:07:31 -07:00
restapi_test.go meow: lint 2026-07-17 04:07:31 -07:00
state.go meow: lint 2026-07-17 04:07:31 -07:00
structs.go meow: lint 2026-07-17 04:07:31 -07:00
structs_test.go meow: import beeper fork 2026-07-14 11:36:09 -07:00
user.go meow: import beeper fork 2026-07-14 11:36:09 -07:00
user_test.go meow: import beeper fork 2026-07-14 11:36:09 -07:00
util.go meow: import beeper fork 2026-07-14 11:36:09 -07:00
util_test.go meow: import beeper fork 2026-07-14 11:36:09 -07:00
voice.go meow: lint 2026-07-17 04:07:31 -07:00
webhook.go meow: import beeper fork 2026-07-14 11:36:09 -07:00
wsapi.go meowcord/wsapi: send standard Op 1 heartbeat for bot sessions 2026-08-08 12:08:17 +03:00

meowcord

meowcord is a Go library that comprehensively implements Discord's REST API and Gateway.

meowcord is a hard fork of bwmarrin/discordgo (via Beeper's fork), originally BSD-3-Clause.

Important

meowcord does not make any stability or compatibility promises at this time and is not designed for external use. meowcord is mostly intended to be used solely by mautrix-discord, and therefore places emphasis on support and functionality for user accounts (i.e. not bot accounts).

Notable deviations and enhancements from discordgo include (but are not limited to):

  • Requires Go 1.25 (August 2025) or newer.
  • Comprehensive user account support.
    • Many user-specific REST endpoints and gateway event types (OP 13, OP 14, etc.) have been added.
    • X-Super-Properties, launch signatures, heartbeat sessions, etc. are supported.
    • Many types have been extended with undocumented fields.
  • Uses coder/websocket to communicate with the Discord Gateway instead of gorilla/websocket.
  • Support for zlib transport compression (compress=zlib-stream).
  • Enhanced state handling.

Fork Provenance & Licensing

meowcord incorporates the following commits and all of their ancestors:

Those forks are BSD-3-Clause. This package is now distributed under AGPL-3.0 to match mautrix-discord.

discordgo's original license is preserved below for attribution only - it is not the current license of this code:

Copyright (c) 2015, Bruce Marriner
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
  list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
  this list of conditions and the following disclaimer in the documentation
  and/or other materials provided with the distribution.

* Neither the name of discordgo nor the names of its
  contributors may be used to endorse or promote products derived from
  this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.