Представьте себе…
…место, где будет комфортно себя чувствовать любая компания: школьный кружок, игровая группа или международное сообщество художников. Место, где можно вдоволь поболтать с друзьями. Ежедневное общение ещё никогда не было настолько простым.
Загрузить Открыть Discord в браузере
Сделайте вход только по приглашениям, чтобы чувствовать себя комфортно
Серверы Discord делятся на тематические каналы, где можно работать вместе, делиться новостями и просто обсуждать свой день, не переполняя групповой чат.
Место, где легко общаться
Начните беседу на канале, когда будете свободны. Друзья с сервера увидят, что вы в сети, и смогут присоединиться к вам. Никаких неудобных звонков!
От группы до сообщества
Организуйте жизнь любого сообщества с помощью инструментов модерации и настраиваемых прав доступа для участников. Наделяйте участников особыми преимуществами, создавайте приватные каналы и не только.
Надёжные технологии для поддержания отношений
Общайтесь с друзьями в голосовом и видеочате с рекордно низкой задержкой так, будто вы сидите в одной комнате. Поздоровайтесь с товарищами, посмотрите, как они играют, или нарисуйте что-нибудь вместе с помощью функции демонстрации экрана.
Saved searches
Use saved searches to filter your results more quickly
Cancel Create saved search
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
discord-client
Here are 85 public repositories matching this topic.
Language: All
Filter by language
Sort: Most stars
Sort options
MateriiApps / OpenCord
An open-source Material You implementation of the Discord Android app
- Updated Oct 7, 2023
- Kotlin
ArmCord / ArmCord
ArmCord is a custom client designed to enhance your Discord experience while keeping everything lightweight.
- Updated Nov 16, 2023
- TypeScript
Discord-Client-Encyclopedia-Management / Discord3rdparties
A non-exhaustive collection of third-party clients and mods for Discord.
- Updated Oct 31, 2023
uowuo / abaddon
An alternative Discord client with voice support made with C++ and GTK 3
- Updated Nov 19, 2023
- C++
diamondburned / gtkcord4
GTK4 Discord client in Go, attempt #4.
- Updated Nov 17, 2023
- Go
SamuelScheit / discord-bot-client
A patched version of discord, with bot login support
- Updated Apr 17, 2023
- HTML
diamondburned / gtkcord3
A Gtk3 Discord client in Golang
- Updated Apr 5, 2022
- Go
SanjaySunil / BetterDiscordPanel
Discord Messaging Panel that allows you to message inside of a bot!
- Updated Nov 11, 2023
- JavaScript
evelyneee / accord
a discord client for modern macs
- Updated Nov 2, 2023
- Swift
UWPCommunity / Quarrel
Quarrel is a Discord client for Windows and Xbox that aims to bring voice chat to Xbox and improved support for varying screen sizes on devices running windows.
- Updated Aug 12, 2022
- C#
aiko-chan-ai / DiscordBotClient
(Discord Bot Client) A patched version of discord, with bot login support (and Vencord !?)
- Updated Oct 9, 2023
- JavaScript
SpikeHD / Dorion
Tiny alternative Discord client with a smaller footprint, themes, plugins and more!
- Updated Nov 19, 2023
- Rust
terminal-discord / weechat-discord
- Updated Jan 23, 2023
- Rust
EnyoYoen / Fast-Discord
A new Discord client made in C++ and Qt
- Updated Feb 26, 2023
- C++
khlam / discord-sandboxed
Alternative electron-based Discord client with custom telemetry blocker and privacy-focused push-to-talk.
- Updated Feb 4, 2023
- JavaScript
Traumatism / ToastCord
A Terminal UI for Discord (deprecated)
- Updated Feb 24, 2022
- Python
TudbuT / bottyclient
A slim Discord client with many cool features including less network traffic which supports bot tokens, but user tokens theoretically work too. Tags: Discord Bot Client Token for Bot Botting Download English
- Updated Sep 1, 2022
- JavaScript
yourWaifu / Unofficial-Discord-3DS-Client
A simple unofficial Discord client to use as an example
- Updated Nov 18, 2017
- C++
Discord.py

Для этого вам придётся зайти на сайт Discord’а по разработки приложений. Далее создаём приложение с помощью кнопки New Application.
Нужно дополнить этот отдел информацией и изображениями
Шаг 2 — Hello World! [ ]
Напишем сначала просто код для того чтобы бот запускался.
import discord client = discord.Client() client.run("Insert here token of bot")
Кстати, токен бота обычно хранят в отдельном файле. Далее создаём событие через @client.event и пишем асинхронную функцию on_message.
@client.event async def on_message(message): if message.content.startswith(".hello"): await message.channel.send("Hello World!")
Также в разработке Discord ботов пример Hello World заменяется «Ping Pong». Выглядит так: пишешь команду ping, получаешь ответ Pong! Теперь напишем событие во время запуска. Оно необязательно, но благодаря ему можно узнать когда можно использовать бота + некоторые команды (например client.change_presence()) лучше использовать именно в этом событии.
@client.event async def on_ready(): print("I'm ready!")
Шаг 2.1 — Создание бота через commands.Bot() [ ]
Особо ничем не отличается т.к. является классом-наследником от Client, однако имеет возможности которые значительно облегчают разработку. Вот так выглядит обычный код с запуском бота и Ping Pong:
import discord from discord.ext import commands client = commands.Bot() @client.command() async def ping(ctx): await ctx.send("Pong!") client.run("Insert here token of bot")
В командах необходимо писать ctx даже если он не используется!
Class DiscordSocketClient
Initializes a new REST/WebSocket-based Discord client.
Declaration
public DiscordSocketClient()
DiscordSocketClient(DiscordSocketConfig)
Initializes a new REST/WebSocket-based Discord client with the provided configuration.
Declaration
public DiscordSocketClient(DiscordSocketConfig config)
Parameters
The configuration to be used with the client.
Properties
Activity
Gets the activity for the logged-in user.
Declaration
public override IActivity Activity
Property Value
An activity object that represents the user’s current activity.
Overrides
ConnectionState
Gets the current connection state of this client.
Declaration
public ConnectionState ConnectionState
Property Value
| Type | Description |
|---|---|
| ConnectionState |
| Improve this Doc View Source
DefaultStickerPacks
Gets a collection of default stickers.
Declaration
public override IReadOnlyCollection> DefaultStickerPacks
Property Value
| Type | Description |
|---|---|
| IReadOnlyCollection > |
Overrides
DMChannels
Gets a collection of direct message channels opened in this session.
Declaration
public IReadOnlyCollection DMChannels
Property Value
A collection of DM channels that have been opened in this session.
Remarks
This method returns a collection of currently opened direct message channels.
warning
This method will not return previously opened DM channels outside of the current session! If you have just started the client, this may return an empty collection.
GroupChannels
Gets a collection of group channels opened in this session.
Declaration
public IReadOnlyCollection GroupChannels
Property Value
A collection of group channels that have been opened in this session.
Remarks
This method returns a collection of currently opened group channels.
warning
This method will not return previously opened group channels outside of the current session! If you have just started the client, this may return an empty collection.
Guilds
Gets a collection of guilds that the user is currently in.
Declaration
public override IReadOnlyCollection Guilds
Property Value
A read-only collection of guilds that the current user is in.
Overrides
Latency
Gets the estimated round-trip latency, in milliseconds, to the gateway server.
Declaration
public override int Latency
Property Value
An that represents the round-trip latency to the WebSocket server. Please note that this value does not represent a «true» latency for operations such as sending a message.
Overrides
PrivateChannels
Gets a collection of private channels opened in this session.
Declaration
public override IReadOnlyCollection PrivateChannels
Property Value
A read-only collection of private channels that the user currently partakes in.
Overrides
Remarks
This method will retrieve all private channels (including direct-message, group channel and such) that are currently opened in this session.
warning
This method will not return previously opened private channels outside of the current session! If you have just started the client, this may return an empty collection.
Rest
Provides access to a REST-only client with a shared state from this client.
Declaration
public override DiscordSocketRestClient Rest
Property Value
| Type | Description |
|---|---|
| DiscordSocketRestClient |
Overrides
ShardId
Gets the shard of this client.
Declaration
public int ShardId
Property Value
| Type | Description |
|---|---|
| Int32 |
| Improve this Doc View Source
Status
Gets the status for the logged-in user.
Declaration
public override UserStatus Status
Property Value
A status object that represents the user’s online presence status.
Overrides
Methods
BulkOverwriteGlobalApplicationCommandsAsync(ApplicationCommandProperties[], RequestOptions)
Declaration
public async Task> BulkOverwriteGlobalApplicationCommandsAsync(ApplicationCommandProperties[] properties, RequestOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ApplicationCommandProperties[] | properties | |
| RequestOptions | options |
Returns
| Type | Description |
|---|---|
| Task < IReadOnlyCollection > |
| Improve this Doc View Source
CreateGlobalApplicationCommandAsync(ApplicationCommandProperties, RequestOptions)
Declaration
public async Task CreateGlobalApplicationCommandAsync(ApplicationCommandProperties properties, RequestOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ApplicationCommandProperties | properties | |
| RequestOptions | options |
Returns
| Type | Description |
|---|---|
| Task |
| Improve this Doc View Source
DownloadUsersAsync(IEnumerable)
Attempts to download users into the user cache for the selected guilds.
Declaration
public override async Task DownloadUsersAsync(IEnumerable guilds)
Parameters
The guilds to download the members from.
Returns
A task that represents the asynchronous download operation.
Overrides
GetApplicationInfoAsync(RequestOptions)
Gets a Discord application information for the logged-in user.
Declaration
public override async Task GetApplicationInfoAsync(RequestOptions options = null)
Parameters
The options to be used when sending the request.
Returns
A task that represents the asynchronous get operation. The task result contains the application information.
Overrides
Remarks
This method reflects your application information you submitted when creating a Discord application via the Developer Portal.
GetChannel(UInt64)
Declaration
public override SocketChannel GetChannel(ulong id)
Parameters
The snowflake identifier of the channel (e.g. 381889909113225237 ).
Returns
A generic WebSocket-based channel object (voice, text, category, etc.) associated with the identifier; null when the channel cannot be found.
Overrides
GetChannelAsync(UInt64, RequestOptions)
Gets a generic channel from the cache or does a rest request if unavailable.
Declaration
public async ValueTask GetChannelAsync(ulong id, RequestOptions options = null)
Parameters
The snowflake identifier of the channel (e.g. 381889909113225237 ).
The options to be used when sending the request.
Returns
A task that represents the asynchronous get operation. The task result contains the channel associated with the snowflake identifier; null when the channel cannot be found.
Examples
var channel = await _client.GetChannelAsync(381889909113225237); if (channel != null && channel is IMessageChannel msgChannel) < await msgChannel.SendMessageAsync($"is created at "); >
GetGlobalApplicationCommandAsync(UInt64, RequestOptions)
Gets a global application command.
Declaration
public async ValueTask GetGlobalApplicationCommandAsync(ulong id, RequestOptions options = null)
Parameters
The id of the command.
The options to be used when sending the request.
Returns
A ValueTask that represents the asynchronous get operation. The task result contains the application command if found, otherwise null .
GetGlobalApplicationCommandsAsync(Boolean, String, RequestOptions)
Gets a collection of all global commands.
Declaration
public async Task> GetGlobalApplicationCommandsAsync(bool withLocalizations = false, string locale = null, RequestOptions options = null)
Parameters
Whether to include full localization dictionaries in the returned objects, instead of the name localized and description localized fields.
The target locale of the localized name and description fields. Sets X-Discord-Locale header, which takes precedence over Accept-Language .
The options to be used when sending the request.
Returns
A task that represents the asynchronous get operation. The task result contains a read-only collection of global application commands.
GetGuild(UInt64)
Declaration
public override SocketGuild GetGuild(ulong id)
Parameters
The guild snowflake identifier.
Returns
A WebSocket-based guild associated with the snowflake identifier; null when the guild cannot be found.
Overrides
GetSticker(UInt64)
Declaration
public SocketSticker GetSticker(ulong id)
Parameters
The unique identifier of the sticker.
Returns
A sticker if found, otherwise null .
GetStickerAsync(UInt64, CacheMode, RequestOptions)
Declaration
public override async Task GetStickerAsync(ulong id, CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null)
Parameters
The id of the sticker to get.
Whether or not to allow downloading from the api.
The options to be used when sending the request.
Returns
A SocketSticker if found, otherwise null .
Overrides
GetUser(String, String)
Declaration
public override SocketUser GetUser(string username, string discriminator = null)
Parameters
The name of the user.
The discriminator value of the user.
Returns
A generic WebSocket-based user; null when the user cannot be found.
Overrides
Remarks
This method gets the user present in the WebSocket cache with the given condition.
warning
Sometimes a user may return null due to Discord not sending offline users in large guilds (i.e. guild with 100+ members) actively. To download users on startup and to see more information about this subject, see AlwaysDownloadUsers.
note
This method does not attempt to fetch users that the logged-in user does not have access to (i.e. users who don’t share mutual guild(s) with the current user). If you wish to get a user that you do not have access to, consider using the REST implementation of .
GetUser(UInt64)
Gets a generic user.
Declaration
public override SocketUser GetUser(ulong id)
Parameters
The user snowflake ID.
Returns
A generic WebSocket-based user; null when the user cannot be found.
Overrides
Remarks
This method gets the user present in the WebSocket cache with the given condition.
warning
Sometimes a user may return null due to Discord not sending offline users in large guilds (i.e. guild with 100+ members) actively. To download users on startup and to see more information about this subject, see AlwaysDownloadUsers.
note
This method does not attempt to fetch users that the logged-in user does not have access to (i.e. users who don’t share mutual guild(s) with the current user). If you wish to get a user that you do not have access to, consider using the REST implementation of .
GetUserAsync(UInt64, RequestOptions)
Gets a user from the cache or does a rest request if unavailable.
Declaration
public async ValueTask GetUserAsync(ulong id, RequestOptions options = null)
Parameters
The snowflake identifier of the user (e.g. 168693960628371456 ).
The options to be used when sending the request.
Returns
A task that represents the asynchronous get operation. The task result contains the user associated with the snowflake identifier; null if the user is not found.
Examples
var user = await _client.GetUserAsync(168693960628371456); if (user != null) Console.WriteLine($" is created at .";
GetVoiceRegionAsync(String, RequestOptions)
Gets a voice region.
Declaration
public override async ValueTask GetVoiceRegionAsync(string id, RequestOptions options = null)
Parameters
The identifier of the voice region (e.g. eu-central ).
The options to be used when sending the request.
Returns
A task that contains a REST-based voice region associated with the identifier; null if the voice region is not found.
Overrides
GetVoiceRegionsAsync(RequestOptions)
Gets all voice regions.
Declaration
public override async ValueTask> GetVoiceRegionsAsync(RequestOptions options = null)
Parameters
The options to be used when sending the request.
Returns
A task that contains a read-only collection of REST-based voice regions.
Overrides
PurgeChannelCache()
Clears all cached channels from the client.
Declaration
public void PurgeChannelCache()
PurgeDMChannelCache()
Clears cached DM channels from the client.
Declaration
public void PurgeDMChannelCache()
PurgeUserCache()
Clears cached users from the client.
Declaration
public void PurgeUserCache()
SetActivityAsync(IActivity)
Sets the activity of the logged-in user.
Declaration
public override async Task SetActivityAsync(IActivity activity)
Parameters
The activity to be set.
Returns
A task that represents the asynchronous set operation.
Overrides
Remarks
This method sets the activity of the user.
note
Discord will only accept setting of name and the type of activity.
warning
Bot accounts cannot set CustomStatus as their activity type and it will have no effect.
warning
Rich Presence cannot be set via this method or client. Rich Presence is strictly limited to RPC clients only.
SetCustomStatusAsync(String)
Sets the custom status of the logged-in user.
Declaration
public override async Task SetCustomStatusAsync(string status)
Parameters
The string that will be displayed as status.
Returns
A task that represents the asynchronous set operation.
Overrides
SetGameAsync(String, String, ActivityType)
Sets the game of the user.
Declaration
public override async Task SetGameAsync(string name, string streamUrl = null, ActivityType type = default(ActivityType))
Parameters
The name of the game.
If streaming, the URL of the stream. Must be a valid Twitch URL.
The type of the game.
Returns
A task that represents the asynchronous set operation.
Overrides
Remarks
warning
Bot accounts cannot set CustomStatus as their activity type and it will have no effect.
Examples
The following example sets the activity of the current user to the specified game name.
await client.SetGameAsync("A Strange Game");
The following example sets the activity of the current user to a streaming status.
await client.SetGameAsync("Great Stream 10/10", "https://twitch.tv/MyAmazingStream1337", ActivityType.Streaming);
SetStatusAsync(UserStatus)
Sets the current status of the user (e.g. Online, Do not Disturb).
Declaration
public override async Task SetStatusAsync(UserStatus status)
Parameters
The new status to be set.
Returns
A task that represents the asynchronous set operation.
Overrides
Examples
The following example sets the status of the current user to Do Not Disturb.
await client.SetStatusAsync(UserStatus.DoNotDisturb);
StartAsync()
Declaration
public override async Task StartAsync()
Returns
| Type | Description |
|---|---|
| Task |