How do I pas variables between classes discord.net

This page summarizes the projects mentioned and recommended in the original post on /r/csharp

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • ASP.NET Core

    ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.

  • Hello all, I am making a hangman game in my discord bot. I want it to tell you how many letters are left after you have guessed a letter correctly. As discord.net works similarly to asp.net, I cannot store the variables in the modules as the data gets recreated each time to command is called. So this means I will have to create a seperate class to store the variables. However, I do not know how I can call a variable from a different class (in this case the variable is called 'lettersleft')? I apologise if this is a silly question.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts