This library provides Discord.NET bots, including NDB.Main, with easy embed functionality.
For all bots (NDB, other & custom):
- Download (or compile) this library.
- Add a reference to this library in your Discord Bot (usually right click project on right hand side -> Add Reference)
- In each source code file you want to use the library, add it to your imports/using. e.g.
- for VB,
Imports NDB.Library.Embeds
would be added underneath your other imports, above your namespace / class declaration. - for C#,
using NDB.Library.Embeds;
would be added underneath your other imports, above your namespace / class declaration.
- for VB,
- Add lines to your
config.json
, specifically:botname
andembedcolour
.- botname should be the readable version of your bot's name, such as
My Discord Bot
orExample Bot
- embedcolour should be a hex value of the colour of the embed.
- botname should be the readable version of your bot's name, such as
- Add this is a dependency to NDB.Loader, if used.
- You can then create embeds by calling
Embeds.ReplyEmbedAsync()